summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-12 18:45:08 +0000
committerChris Lattner <sabre@nondot.org>2003-02-12 18:45:08 +0000
commitb8450599f3e39b9c99224eef2ca7ece02fead1d5 (patch)
tree38fc2bf38f0e59f134b7d5c0667c30f5e8393450 /llvm
parent4dbe59b5ba77c78160fbe437d74a5cb38e67f3ef (diff)
downloadbcm5719-llvm-b8450599f3e39b9c99224eef2ca7ece02fead1d5.tar.gz
bcm5719-llvm-b8450599f3e39b9c99224eef2ca7ece02fead1d5.zip
Add new -no-verify option
llvm-svn: 5542
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/opt/opt.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 9d0837c29d7..74c30d12004 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -51,6 +51,9 @@ static cl::opt<bool>
NoOutput("no-output", cl::desc("Do not write result bytecode file"), cl::Hidden);
static cl::opt<bool>
+NoVerify("no-verify", cl::desc("Do not verify result module"), cl::Hidden);
+
+static cl::opt<bool>
Quiet("q", cl::desc("Don't print 'program modified' message"));
static cl::alias
@@ -128,7 +131,8 @@ int main(int argc, char **argv) {
}
// Check that the module is well formed on completion of optimization
- Passes.add(createVerifierPass());
+ if (!NoVerify)
+ Passes.add(createVerifierPass());
// Write bytecode out to disk or cout as the last step...
if (!NoOutput)
OpenPOWER on IntegriCloud