summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commit4d93dc17b2e043050021ac5b77994e8cb8c06525 (patch)
tree455d20f5d52b005ce5feb28052951ea068d1fad1 /llvm/tools
parent7da2bceb3b7c811812aed926ebb5a9aaa78cd6b7 (diff)
downloadbcm5719-llvm-4d93dc17b2e043050021ac5b77994e8cb8c06525.tar.gz
bcm5719-llvm-4d93dc17b2e043050021ac5b77994e8cb8c06525.zip
llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.
llvm-svn: 48550
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-ld/Optimize.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp
index 17c65b5778f..85c60748438 100644
--- a/llvm/tools/llvm-ld/Optimize.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud