[llvm] r373883 - [TableGen] Pacify gcc-5.4 more

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 01:23:20 PDT 2019


Author: jamesm
Date: Mon Oct  7 01:23:20 2019
New Revision: 373883

URL: http://llvm.org/viewvc/llvm-project?rev=373883&view=rev
Log:
[TableGen] Pacify gcc-5.4 more

Followup to a previous pacification, this performs the same workaround
to the TableGen generated code for tuple automata.

Modified:
    llvm/trunk/utils/TableGen/DFAEmitter.cpp

Modified: llvm/trunk/utils/TableGen/DFAEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DFAEmitter.cpp?rev=373883&r1=373882&r2=373883&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DFAEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DFAEmitter.cpp Mon Oct  7 01:23:20 2019
@@ -373,7 +373,7 @@ void CustomDfaEmitter::printActionType(r
 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(
     SingleAction.print(OS);
   }
   if (AT.size() > 1)
-    OS << "}";
+    OS << ")";
 }
 
 namespace llvm {




More information about the llvm-commits mailing list