mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
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:
parent
b2d11814f9
commit
04aa29d7bf
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user