diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-10 00:46:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-10 00:46:12 +0000 |
commit | 9253e494924ff455aff853be70b9128f84ba1b6c (patch) | |
tree | 923aaa59168c95cf4fae9db06d8323bf315bb4df | |
parent | fee8a3c003a8894002810a6373bd5b895290974e (diff) |
Remove some if-0'd code, we can resurrect this if we ever decide to support
continuing after invalid PCH loads.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/clang-cc/clang-cc.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index ba654fdc9d..33f7465fa9 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -1936,17 +1936,6 @@ static void ProcessInputFile(const CompilerInvocation &CompOpts, case PCHReader::IgnorePCH: // No suitable PCH file could be found. Return an error. return; - -#if 0 - // FIXME: We can recover from failed attempts to load PCH - // files. This code will do so, if we ever want to enable it. - - // We delayed the initialization of builtins in the hope of - // loading the PCH file. Since the PCH file could not be - // loaded, initialize builtins now. - if (ContextOwner) - ContextOwner->InitializeBuiltins(PP.getIdentifierTable()); -#endif } // Finish preprocessor initialization. We do this now (rather @@ -2381,7 +2370,7 @@ int main(int argc, char **argv) { HeaderInfo.ClearFileInfo(); } - if (!NoCaretDiagnostics) + if (CompOpts.getDiagnosticOpts().ShowCarets) if (unsigned NumDiagnostics = Diags.getNumDiagnostics()) fprintf(stderr, "%d diagnostic%s generated.\n", NumDiagnostics, (NumDiagnostics == 1 ? "" : "s")); |