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
This commit is contained in:
Chris Lattner
2009-06-21 05:06:04 +00:00
parent 8070ea3f06
commit 7ee5d5f97b
6 changed files with 40 additions and 25 deletions
+3 -3
View File
@@ -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();
}