X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTableGen%2FTGLexer.h;h=d1bd70d2eca427caf9778ab51118bbf171d0cdde;hb=37fe6627f6790f969d27563f37113cedbf4e0a36;hp=a0818f9db74c4a0b49452ea47e5ecab7c0528ec9;hpb=d23a41c153712b929bd84f5e713bda5db5d6e66d;p=oota-llvm.git diff --git a/lib/TableGen/TGLexer.h b/lib/TableGen/TGLexer.h index a0818f9db74..d1bd70d2eca 100644 --- a/lib/TableGen/TGLexer.h +++ b/lib/TableGen/TGLexer.h @@ -15,9 +15,10 @@ #define TGLEXER_H #include "llvm/Support/DataTypes.h" +#include "llvm/Support/SMLoc.h" #include +#include #include -#include namespace llvm { class MemoryBuffer; @@ -73,9 +74,13 @@ class TGLexer { /// CurBuffer - This is the current buffer index we're lexing from as managed /// by the SourceMgr object. int CurBuffer; + +public: + typedef std::map DependenciesMapTy; +private: /// Dependencies - This is the list of all included files. - std::vector Dependencies; - + DependenciesMapTy Dependencies; + public: TGLexer(SourceMgr &SrcMgr); ~TGLexer() {} @@ -84,7 +89,7 @@ public: return CurCode = LexToken(); } - const std::vector &getDependencies() const { + const DependenciesMapTy &getDependencies() const { return Dependencies; }