[cfe-commits] r109988 - /cfe/trunk/tools/driver/driver.cpp
Daniel Dunbar
daniel at zuster.org
Sun Aug 1 15:29:47 PDT 2010
Author: ddunbar
Date: Sun Aug 1 17:29:47 2010
New Revision: 109988
URL: http://llvm.org/viewvc/llvm-project?rev=109988&view=rev
Log:
Simplify.
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=109988&r1=109987&r2=109988&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Sun Aug 1 17:29:47 2010
@@ -319,8 +319,6 @@
TheDriver.CCCGenericGCCName = "g++";
}
- llvm::OwningPtr<Compilation> C;
-
// Handle CC_PRINT_OPTIONS and CC_PRINT_OPTIONS_FILE.
TheDriver.CCPrintOptions = !!::getenv("CC_PRINT_OPTIONS");
if (TheDriver.CCPrintOptions)
@@ -351,12 +349,12 @@
argv.insert(&argv[1], ExtraArgs.begin(), ExtraArgs.end());
}
- C.reset(TheDriver.BuildCompilation(argv.size(), &argv[0]));
+ llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(argv.size(),
+ &argv[0]));
int Res = 0;
if (C.get())
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.
More information about the cfe-commits
mailing list