diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-21 05:06:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-21 05:06:04 +0000 |
commit | 7ee5d5f97b3fa709038ff7fd640dc775efaadc26 (patch) | |
tree | 94ad4c8268c7b77b3b828c9cc0f0c868930c20aa /utils/TableGen/TableGen.cpp | |
parent | 8070ea3f068980d08cc10381f4c9369d19a91353 (diff) |
move include searching logic from TGLexer to SourceMgr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r-- | utils/TableGen/TableGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index 0d5d86fdd6..cb83cf3b4b 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -146,12 +146,12 @@ static bool ParseFile(const std::string &Filename, // Tell SrcMgr about this buffer, which is what TGParser will pick up. SrcMgr.AddNewSourceBuffer(F, SMLoc()); - - TGParser Parser(SrcMgr); // Record the location of the include directory so that the lexer can find // it later. - Parser.setIncludeDirs(IncludeDirs); + SrcMgr.setIncludeDirs(IncludeDirs); + + TGParser Parser(SrcMgr); return Parser.ParseFile(); } |