OSDN Git Service

[TableGen] Make TiedAsmOperandTable in the AsmMatcher 'static' since its at file...
authorCraig Topper <craig.topper@intel.com>
Mon, 18 Jun 2018 16:17:46 +0000 (16:17 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 18 Jun 2018 16:17:46 +0000 (16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334957 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index aa4f8e5..7318c6d 100644 (file)
@@ -2261,7 +2261,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
     }
     OS << "};\n\n";
 
-    OS << "const uint8_t TiedAsmOperandTable[][3] = {\n";
+    OS << "static const uint8_t TiedAsmOperandTable[][3] = {\n";
     for (auto &KV : TiedOperandsEnumMap) {
       OS << "  /* " << KV.second << " */ { "
          << utostr(std::get<0>(KV.first)) << ", "
@@ -2270,7 +2270,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
     }
     OS << "};\n\n";
   } else
-    OS << "const uint8_t TiedAsmOperandTable[][3] = "
+    OS << "static const uint8_t TiedAsmOperandTable[][3] = "
           "{ /* empty  */ {0, 0, 0} };\n\n";
 
   OS << "namespace {\n";