summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2008-03-19 20:49:51 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2008-03-19 20:49:51 +0000
commit50b5742157c9ca3e3c0bf7d8990cf745cd4811cd (patch)
tree02c42f869df04cf255e4c8c52bab042cbcc3dacb /tools/llvm-ld
parent4fe3073cfb5273a3655aef0c8d50c96882f26882 (diff)
downloadllvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.tar.gz
llvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.tar.bz2
llvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.tar.xz
llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/Optimize.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp
index 17c65b5778..85c6074843 100644
--- a/tools/llvm-ld/Optimize.cpp
+++ b/tools/llvm-ld/Optimize.cpp
@@ -32,6 +32,9 @@ using namespace llvm;
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 @@ void Optimize(Module* M) {
}
// 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);