Driver: Move Compilation::Execute to Driver::ExecuteCompilation.
- The Compilation is just a helper class, it shouldn't have that amount of
logic in it.
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74634 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 804bef4..323283e 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -219,7 +219,7 @@
int Res = 0;
if (C.get())
- Res = C->Execute();
+ Res = TheDriver.ExecuteCompilation(*C);
llvm::llvm_shutdown();