summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGParser.h
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-03-06 13:48:54 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-03-06 13:48:54 +0000
commit73355bcd2a747dead865223b9858168ea3776b76 (patch)
treee4482a432ca03765d805c6f600d76651f14861d9 /llvm/lib/TableGen/TGParser.h
parent0f529885fad55a42a81625cb8894e7646bc2761f (diff)
downloadbcm5719-llvm-73355bcd2a747dead865223b9858168ea3776b76.tar.gz
bcm5719-llvm-73355bcd2a747dead865223b9858168ea3776b76.zip
TableGen: Move getNewAnonymousName into RecordKeeper
Summary: So that we will be able to generate new anonymous names more easily outside the parser as well. Change-Id: I28f396a7bdbc3ff0c665d466abbd3d31376e21b4 Reviewers: arsenm, craig.topper, tra, MartinO Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D43755 llvm-svn: 326787
Diffstat (limited to 'llvm/lib/TableGen/TGParser.h')
-rw-r--r--llvm/lib/TableGen/TGParser.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h
index 1b2966c9f6c..e97290761ef 100644
--- a/llvm/lib/TableGen/TGParser.h
+++ b/llvm/lib/TableGen/TGParser.h
@@ -68,8 +68,6 @@ class TGParser {
// Record tracker
RecordKeeper &Records;
- unsigned AnonCounter;
-
// A "named boolean" indicating how to parse identifiers. Usually
// identifiers map to some existing object but in special cases
// (e.g. parsing def names) no such object exists yet because we are
@@ -84,7 +82,7 @@ class TGParser {
public:
TGParser(SourceMgr &SrcMgr, RecordKeeper &records)
- : Lex(SrcMgr), CurMultiClass(nullptr), Records(records), AnonCounter(0) {}
+ : Lex(SrcMgr), CurMultiClass(nullptr), Records(records) {}
/// ParseFile - Main entrypoint for parsing a tblgen file. These parser
/// routines return true on error, or false on success.
@@ -110,8 +108,6 @@ private: // Semantic analysis methods.
bool AddSubMultiClass(MultiClass *CurMC,
SubMultiClassReference &SubMultiClass);
- Init *GetNewAnonymousName();
-
// IterRecord: Map an iterator name to a value.
struct IterRecord {
VarInit *IterVar;
OpenPOWER on IntegriCloud