summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TGParser.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-10-23 07:32:53 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-10-23 07:32:53 +0000
commitf4a680923112109d09330e2db967bf9583d69906 (patch)
treef8aeed383337177671fa3f510bcc25490f4a6ee4 /llvm/utils/TableGen/TGParser.cpp
parente9b78186d4caeb7dd36860e5435c223a7b1eac57 (diff)
downloadbcm5719-llvm-f4a680923112109d09330e2db967bf9583d69906.tar.gz
bcm5719-llvm-f4a680923112109d09330e2db967bf9583d69906.zip
Remove -llvmc-temp-hack from tblgen.
llvm-svn: 117197
Diffstat (limited to 'llvm/utils/TableGen/TGParser.cpp')
-rw-r--r--llvm/utils/TableGen/TGParser.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/utils/TableGen/TGParser.cpp b/llvm/utils/TableGen/TGParser.cpp
index a666c9140da..1f4b07b4bda 100644
--- a/llvm/utils/TableGen/TGParser.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud