diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-02-01 16:36:07 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-02-01 16:36:07 +0000 |
commit | 22c22f5f9a0fa0db6cb0fae9c9ced4756cd52701 (patch) | |
tree | 1624b13d593d97d1e31fdee0292f72ce74328936 /clang/lib/Lex/Preprocessor.cpp | |
parent | 4985b8766e62127c695f12554c6f28dd2b838c4f (diff) | |
download | llvm-22c22f5f9a0fa0db6cb0fae9c9ced4756cd52701.zip llvm-22c22f5f9a0fa0db6cb0fae9c9ced4756cd52701.tar.gz llvm-22c22f5f9a0fa0db6cb0fae9c9ced4756cd52701.tar.bz2 |
Introduce SourceManager::PredefinesFileID, to allow each checking of whether
a source location came from the predefines buffer.
llvm-svn: 174190
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index eb498db..155074c 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -483,6 +483,7 @@ void Preprocessor::EnterMainSourceFile() { assert(SB && "Cannot create predefined source buffer"); FileID FID = SourceMgr.createFileIDForMemBuffer(SB); assert(!FID.isInvalid() && "Could not create FileID for predefines?"); + setPredefinesFileID(FID); // Start parsing the predefines. EnterSourceFile(FID, 0, SourceLocation()); |