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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232848 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp

index 65684b7e1ccbbbee78a5a36f08935347d0973d35..1b70a7c3daabcb94e087d2816770cc78f80c0da7 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");