summaryrefslogtreecommitdiffstats
path: root/clang/Driver/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-04 21:25:59 +0000
committerChris Lattner <sabre@nondot.org>2006-07-04 21:25:59 +0000
commitff3f5f4b772bac643a8a2cd459ea2f289ff9d76e (patch)
treec0e12bb05106d054756aef47d69b9c5989a300e6 /clang/Driver/PrintPreprocessedOutput.cpp
parent03cbe1fc02c629d6401de7eef1290407433b750e (diff)
downloadbcm5719-llvm-ff3f5f4b772bac643a8a2cd459ea2f289ff9d76e.tar.gz
bcm5719-llvm-ff3f5f4b772bac643a8a2cd459ea2f289ff9d76e.zip
fix compile error
llvm-svn: 38667
Diffstat (limited to 'clang/Driver/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/Driver/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/PrintPreprocessedOutput.cpp b/clang/Driver/PrintPreprocessedOutput.cpp
index d55feca3c32..f54e52cf9b0 100644
--- a/clang/Driver/PrintPreprocessedOutput.cpp
+++ b/clang/Driver/PrintPreprocessedOutput.cpp
@@ -71,6 +71,7 @@ static void HandleFileChange(SourceLocation Loc,
// Unless we are exiting a #include, make sure to skip ahead to the line the
// #include directive was at.
+ SourceManager &SourceMgr = EModePP->getSourceManager();
if (Reason == Preprocessor::EnterFile) {
MoveToLine(SourceMgr.getIncludeLoc(Loc.getFileID()));
} else if (Reason == Preprocessor::SystemHeaderPragma) {
@@ -81,7 +82,6 @@ static void HandleFileChange(SourceLocation Loc,
// strange behavior.
}
- SourceManager &SourceMgr = EModePP->getSourceManager();
EModeCurLine = SourceMgr.getLineNumber(Loc);
EModeCurFilename = Lexer::Stringify(SourceMgr.getSourceName(Loc));
EmodeFileType = FileType;
OpenPOWER on IntegriCloud