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 | 95d912c994832333a998bc7d4ae0e8e830a2d38b (patch) | |
tree | 260b1ac330d372996e18d0322da0d0108e588bc9 /lib/Lex/Preprocessor.cpp | |
parent | 4ba2508f05a0820e1c570d764321ce22abeadd72 (diff) |
Introduce SourceManager::PredefinesFileID, to allow each checking of whether
a source location came from the predefines buffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index eb498dbfd2..155074c9f8 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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()); |