X86: Make helper functions static. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Mar 2015 21:07:30 +0000 (21:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Mar 2015 21:07:30 +0000 (21:07 +0000)
llvm-svn: 232848

llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp

index 65684b7..1b70a7c 100644 (file)
@@ -73,8 +73,8 @@ static X86_64RelType getType64(unsigned Kind,
   }
 }
 
-unsigned getRelocType64(MCSymbolRefExpr::VariantKind Modifier,
-                        X86_64RelType Type, bool IsPCRel) {
+static unsigned getRelocType64(MCSymbolRefExpr::VariantKind Modifier,
+                               X86_64RelType Type, bool IsPCRel) {
   switch (Modifier) {
   default:
     llvm_unreachable("Unimplemented");
@@ -176,8 +176,8 @@ static X86_32RelType getType32(X86_64RelType T) {
   }
 }
 
-unsigned getRelocType32(MCSymbolRefExpr::VariantKind Modifier,
-                        X86_32RelType Type, bool IsPCRel) {
+static unsigned getRelocType32(MCSymbolRefExpr::VariantKind Modifier,
+                               X86_32RelType Type, bool IsPCRel) {
   switch (Modifier) {
   default:
     llvm_unreachable("Unimplemented");