diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-10-23 07:32:53 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-10-23 07:32:53 +0000 |
commit | a73e5864951b2d4f50166d0155b8b99e4e7af535 (patch) | |
tree | fd3da6076001687bfada0af55a863ede8690a1c5 /utils/TableGen/TGParser.cpp | |
parent | 17ef94fe1b714c437dfeca3bfdd72b37d8771c49 (diff) | |
download | llvm-a73e5864951b2d4f50166d0155b8b99e4e7af535.tar.gz llvm-a73e5864951b2d4f50166d0155b8b99e4e7af535.tar.bz2 llvm-a73e5864951b2d4f50166d0155b8b99e4e7af535.tar.xz |
Remove -llvmc-temp-hack from tblgen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGParser.cpp')
-rw-r--r-- | utils/TableGen/TGParser.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp index a666c9140d..1f4b07b4bd 100644 --- a/utils/TableGen/TGParser.cpp +++ b/utils/TableGen/TGParser.cpp @@ -20,11 +20,6 @@ #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. |