[llvm-commits] CVS: llvm/tools/as/as.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 18 15:48:01 PDT 2003
Changes in directory llvm/tools/as:
as.cpp updated: 1.19 -> 1.20
---
Log message:
Add new -disable-verify option
---
Diffs of the changes:
Index: llvm/tools/as/as.cpp
diff -u llvm/tools/as/as.cpp:1.19 llvm/tools/as/as.cpp:1.20
--- llvm/tools/as/as.cpp:1.19 Sat May 31 16:47:14 2003
+++ llvm/tools/as/as.cpp Mon Aug 18 15:47:13 2003
@@ -31,6 +31,10 @@
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
+static cl::opt<bool>
+DisableVerify("disable-verify", cl::Hidden,
+ cl::desc("Do not run verifier on input LLVM (dangerous!"));
+
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n");
@@ -43,12 +47,11 @@
return 1;
}
- if (verifyModule(*M.get())) {
+ if (!DisableVerify && verifyModule(*M.get())) {
std::cerr << argv[0]
<< ": assembly parsed, but does not verify as correct!\n";
return 1;
}
-
if (DumpAsm) std::cerr << "Here's the assembly:\n" << M.get();
More information about the llvm-commits
mailing list