[cfe-commits] r38667 - /cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:23:39 PDT 2007


Author: sabre
Date: Wed Jul 11 11:23:39 2007
New Revision: 38667

URL: http://llvm.org/viewvc/llvm-project?rev=38667&view=rev
Log:
fix compile error

Modified:
    cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=38667&r1=38666&r2=38667&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Jul 11 11:23:39 2007
@@ -71,6 +71,7 @@
 
   // 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 @@
     // strange behavior.
   }
   
-  SourceManager &SourceMgr = EModePP->getSourceManager();
   EModeCurLine = SourceMgr.getLineNumber(Loc);
   EModeCurFilename = Lexer::Stringify(SourceMgr.getSourceName(Loc));
   EmodeFileType = FileType;





More information about the cfe-commits mailing list