[TableGen] Pacify gcc-5.4 more
authorJames Molloy <jmolloy@google.com>
Mon, 7 Oct 2019 08:23:20 +0000 (08:23 +0000)
committerJames Molloy <jmolloy@google.com>
Mon, 7 Oct 2019 08:23:20 +0000 (08:23 +0000)
Followup to a previous pacification, this performs the same workaround
to the TableGen generated code for tuple automata.

llvm-svn: 373883

llvm/utils/TableGen/DFAEmitter.cpp

index cf339dc..dd3db7c 100644 (file)
@@ -373,7 +373,7 @@ void CustomDfaEmitter::printActionType(raw_ostream &OS) { OS << TypeName; }
 void CustomDfaEmitter::printActionValue(action_type A, raw_ostream &OS) {
   const ActionTuple &AT = Actions[A];
   if (AT.size() > 1)
-    OS << "{";
+    OS << "std::make_tuple(";
   bool First = true;
   for (const auto &SingleAction : AT) {
     if (!First)
@@ -382,7 +382,7 @@ void CustomDfaEmitter::printActionValue(action_type A, raw_ostream &OS) {
     SingleAction.print(OS);
   }
   if (AT.size() > 1)
-    OS << "}";
+    OS << ")";
 }
 
 namespace llvm {