mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user