summaryrefslogtreecommitdiffstats
path: root/tools/driver
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-07-20 21:16:17 +0000
committerChad Rosier <mcrosier@apple.com>2011-07-20 21:16:17 +0000
commitd7a3ba03f69892aac02e0771eb2e6d1b7b1d1267 (patch)
tree3915104cc5920d220fffd0edbde9544b191af173 /tools/driver
parente1809074d08f3a91bb2ef5f088b52bb46a08fb8a (diff)
Temporarily revert r135614 while I fix the cmake build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/driver.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index b2f65c9288..ca8982619e 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -458,15 +458,9 @@ int main(int argc_, const char **argv_) {
llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(argv));
int Res = 0;
- const Command *FailingCommand = 0;
if (C.get())
- Res = TheDriver.ExecuteCompilation(*C, FailingCommand);
-
- // If result status is < 0, then the driver command signalled an error.
- // In this case, generate additional diagnostic information if possible.
- if (Res < 0)
- TheDriver.generateCompilationDiagnostics(*C, FailingCommand);
-
+ Res = TheDriver.ExecuteCompilation(*C);
+
// If any timers were active but haven't been destroyed yet, print their
// results now. This happens in -disable-free mode.
llvm::TimerGroup::printAll(llvm::errs());