[cfe-commits] r86961 - /cfe/trunk/tools/clang-cc/clang-cc.cpp

Daniel Dunbar daniel at zuster.org
Thu Nov 12 00:48:17 CST 2009


Author: ddunbar
Date: Thu Nov 12 00:48:17 2009
New Revision: 86961

URL: http://llvm.org/viewvc/llvm-project?rev=86961&view=rev
Log:
Simplify.

Modified:
    cfe/trunk/tools/clang-cc/clang-cc.cpp

Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=86961&r1=86960&r2=86961&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Thu Nov 12 00:48:17 2009
@@ -659,7 +659,6 @@
                              ProgActions PA, llvm::LLVMContext& Context) {
   llvm::OwningPtr<llvm::raw_ostream> OS;
   llvm::OwningPtr<ASTConsumer> Consumer;
-  bool ClearSourceMgr = false;
   FixItRewriter *FixItRewrite = 0;
   bool CompleteTranslationUnit = true;
   llvm::sys::Path OutPath;
@@ -875,8 +874,6 @@
       break;
     }
     }
-
-    ClearSourceMgr = true;
   }
 
   if (FixItRewrite)
@@ -905,12 +902,6 @@
     fprintf(stderr, "\n");
   }
 
-  // For a multi-file compilation, some things are ok with nuking the source
-  // manager tables, other require stable fileid/macroid's across multiple
-  // files.
-  if (ClearSourceMgr)
-    PP.getSourceManager().clearIDTables();
-
   // Always delete the output stream because we don't want to leak file
   // handles.  Also, we don't want to try to erase an open file.
   OS.reset();




More information about the cfe-commits mailing list