[llvm-commits] [llvm] r48550 - /llvm/trunk/tools/llvm-ld/Optimize.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Mar 19 13:49:51 PDT 2008
Author: alenhar2
Date: Wed Mar 19 15:49:51 2008
New Revision: 48550
URL: http://llvm.org/viewvc/llvm-project?rev=48550&view=rev
Log:
llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.
Modified:
llvm/trunk/tools/llvm-ld/Optimize.cpp
Modified: llvm/trunk/tools/llvm-ld/Optimize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/Optimize.cpp?rev=48550&r1=48549&r2=48550&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ld/Optimize.cpp (original)
+++ llvm/trunk/tools/llvm-ld/Optimize.cpp Wed Mar 19 15:49:51 2008
@@ -32,6 +32,9 @@
static cl::list<const PassInfo*, bool, PassNameParser>
OptimizationList(cl::desc("Optimizations available:"));
+//Don't veryify at the end
+static cl::opt<bool> DontVerify("disable-verify", cl::ReallyHidden);
+
// Optimization Enumeration
enum OptimizationLevels {
OPT_FAST_COMPILE = 1,
@@ -206,7 +209,8 @@
}
// Make sure everything is still good.
- Passes.add(createVerifierPass());
+ if(!DontVerify)
+ Passes.add(createVerifierPass());
// Run our queue of passes all at once now, efficiently.
Passes.run(*M);
More information about the llvm-commits
mailing list