diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 06:48:17 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 06:48:17 +0000 | 
| commit | 723e74ab7571dfc4a057b768d1ec44f6a2383bd7 (patch) | |
| tree | e1b8e7ab9b9d7ca1ad41690a0084605f7ce082ed | |
| parent | 700205c49f86c8f05e9e5abba01fdc091ae4951e (diff) | |
| download | bcm5719-llvm-723e74ab7571dfc4a057b768d1ec44f6a2383bd7.tar.gz bcm5719-llvm-723e74ab7571dfc4a057b768d1ec44f6a2383bd7.zip | |
Simplify.
llvm-svn: 86961
| -rw-r--r-- | clang/tools/clang-cc/clang-cc.cpp | 9 | 
1 files changed, 0 insertions, 9 deletions
| diff --git a/clang/tools/clang-cc/clang-cc.cpp b/clang/tools/clang-cc/clang-cc.cpp index a40dcee2b3a..e4945ecd8aa 100644 --- a/clang/tools/clang-cc/clang-cc.cpp +++ b/clang/tools/clang-cc/clang-cc.cpp @@ -659,7 +659,6 @@ static void ProcessInputFile(const CompilerInvocation &CompOpts,                               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 @@ 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(); | 

