Remove -llvmc-temp-hack from tblgen.
[oota-llvm.git] / utils / TableGen / TGParser.cpp
index a666c9140da91dcfe7d7406b90af4edf0e2f4c1f..1f4b07b4bdace61d1d0c9e3b8733e57bc850399e 100644 (file)
 #include "llvm/Support/CommandLine.h"
 using namespace llvm;
 
-/// LLVMCHack - This is a temporary hack that changes how "(foo [1, 2, 3])"
-/// parses.
-/// FIXME: REMOVE THIS.
-static cl::opt<bool> LLVMCHack("llvmc-temp-hack", cl::ReallyHidden);
-
 //===----------------------------------------------------------------------===//
 // Support Code for the Semantic Actions.
 //===----------------------------------------------------------------------===//
@@ -1219,18 +1214,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
       return 0;
     }
 
-    Init *Operator;
-    /// LLVMC Requires an old grammar and I don't know how to update it, placate
-    /// it in the short term by changing the grammar specifically for llvmc.
-    /// FIXME: REMOVE THIS.
-    if (!LLVMCHack)
-      Operator = ParseValue(CurRec);
-    else {
-      if (Lex.getCode() == tgtok::Id)
-        Operator = ParseIDValue(CurRec);
-      else
-        Operator = ParseOperation(CurRec);
-    }
+    Init *Operator = ParseValue(CurRec);
     if (Operator == 0) return 0;
 
     // If the operator name is present, parse it.