summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-03 05:16:05 +0000
committerChris Lattner <sabre@nondot.org>2006-07-03 05:16:05 +0000
commit4ec473f8712d8539cd39076a7e390cf8b2affb78 (patch)
tree6c1f044fbd7a7e0706f682cf131ee56d60a4eaf4 /clang/Lex/Lexer.cpp
parent040a4ab71e8bf583ceaa2991838c2198eded5bf2 (diff)
downloadbcm5719-llvm-4ec473f8712d8539cd39076a7e390cf8b2affb78.tar.gz
bcm5719-llvm-4ec473f8712d8539cd39076a7e390cf8b2affb78.zip
Add support to track the real top-level file.
llvm-svn: 38630
Diffstat (limited to 'clang/Lex/Lexer.cpp')
-rw-r--r--clang/Lex/Lexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp
index 51d4c73190a..208f25ac60d 100644
--- a/clang/Lex/Lexer.cpp
+++ b/clang/Lex/Lexer.cpp
@@ -43,6 +43,7 @@ Lexer::Lexer(const SourceBuffer *File, unsigned fileid, Preprocessor &pp,
BufferEnd(BufEnd ? BufEnd : File->getBufferEnd()),
InputFile(File), CurFileID(fileid), PP(pp), Features(PP.getLangOptions()) {
Is_PragmaLexer = false;
+ IsMainFile = false;
InitCharacterInfo();
assert(BufferEnd[0] == 0 &&
OpenPOWER on IntegriCloud