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

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


Author: sabre
Date: Wed Jul 11 11:23:38 2007
New Revision: 38666

URL: http://llvm.org/viewvc/llvm-project?rev=38666&view=rev
Log:
Minor code cleanup

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=38666&r1=38665&r2=38666&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Jul 11 11:23:38 2007
@@ -67,12 +67,7 @@
 static void HandleFileChange(SourceLocation Loc,
                              Preprocessor::FileChangeReason Reason,
                              DirectoryLookup::DirType FileType) {
-  SourceManager &SourceMgr = EModePP->getSourceManager();
-  
-  if (DisableLineMarkers) {
-    EmodeFileType = FileType;
-    return;
-  }
+  if (DisableLineMarkers) return;
 
   // Unless we are exiting a #include, make sure to skip ahead to the line the
   // #include directive was at.
@@ -86,6 +81,7 @@
     // 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