Add new -disable-verify option

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-18 20:47:13 +00:00
parent b2d11814f9
commit 04aa29d7bf
3 changed files with 15 additions and 6 deletions

View File

@ -31,6 +31,10 @@ Force("f", cl::desc("Overwrite output files"));
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 @@ int main(int argc, char **argv) {
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();

View File

@ -31,6 +31,10 @@ Force("f", cl::desc("Overwrite output files"));
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 @@ int main(int argc, char **argv) {
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();

View File

@ -31,6 +31,10 @@ Force("f", cl::desc("Overwrite output files"));
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 @@ int main(int argc, char **argv) {
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();