summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-02 23:00:20 +0000
committerChris Lattner <sabre@nondot.org>2006-07-02 23:00:20 +0000
commit98a53124783a9b9b559b071628065659b9883783 (patch)
treef434909e10aba4a18c7cfa11f69d78f8d6152296 /clang/Lex/Preprocessor.cpp
parente55e11ad040e559a4f281545563f12387303d685 (diff)
downloadbcm5719-llvm-98a53124783a9b9b559b071628065659b9883783.tar.gz
bcm5719-llvm-98a53124783a9b9b559b071628065659b9883783.zip
Give tokens expanded from _Pragma directives correct source locations.
This implements test/Preprocessor/_Pragma-location.c llvm-svn: 38619
Diffstat (limited to 'clang/Lex/Preprocessor.cpp')
-rw-r--r--clang/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp
index 39b2572a5ab..9884eb25c9f 100644
--- a/clang/Lex/Preprocessor.cpp
+++ b/clang/Lex/Preprocessor.cpp
@@ -411,7 +411,7 @@ void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer,
CurMacroExpander = 0;
// Notify the client, if desired, that we are in a new source file.
- if (FileChangeHandler) {
+ if (FileChangeHandler && !CurLexer->Is_PragmaLexer) {
DirectoryLookup::DirType FileType = DirectoryLookup::NormalHeaderDir;
// Get the file entry for the current file.
OpenPOWER on IntegriCloud