From: Daniel Dunbar Date: Thu, 12 Nov 2009 06:48:17 +0000 (+0000) Subject: Simplify. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32358e24af8fd7a7242d3835c444c4e822a70382;p=clang Simplify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86961 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index a40dcee2b3..e4945ecd8a 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -659,7 +659,6 @@ static void ProcessInputFile(const CompilerInvocation &CompOpts, ProgActions PA, llvm::LLVMContext& Context) { llvm::OwningPtr OS; llvm::OwningPtr Consumer; - bool ClearSourceMgr = false; FixItRewriter *FixItRewrite = 0; bool CompleteTranslationUnit = true; llvm::sys::Path OutPath; @@ -875,8 +874,6 @@ static void ProcessInputFile(const CompilerInvocation &CompOpts, break; } } - - ClearSourceMgr = true; } if (FixItRewrite) @@ -905,12 +902,6 @@ static void ProcessInputFile(const CompilerInvocation &CompOpts, 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();