diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-30 21:41:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-30 21:41:20 +0000 |
commit | 59279b1273197566dacdd8939b3c3038965be65a (patch) | |
tree | 056ed30bf9d6b02800fc25a9760f459b9ebdc4cb /tools/llc | |
parent | 060bb6bb4a956380db4052c4fb163081f1a7424a (diff) | |
download | llvm-59279b1273197566dacdd8939b3c3038965be65a.tar.gz llvm-59279b1273197566dacdd8939b3c3038965be65a.tar.bz2 llvm-59279b1273197566dacdd8939b3c3038965be65a.tar.xz |
Fix llc to run the verifier once, not twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 2ca502ec41..13fe71b109 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -18,7 +18,6 @@ #include "llvm/PassManager.h" #include "llvm/Pass.h" #include "llvm/ADT/Triple.h" -#include "llvm/Analysis/Verifier.h" #include "llvm/Support/IRReader.h" #include "llvm/CodeGen/LinkAllAsmWriterComponents.h" #include "llvm/CodeGen/LinkAllCodegenComponents.h" @@ -295,14 +294,6 @@ int main(int argc, char **argv) { case '3': OLvl = CodeGenOpt::Aggressive; break; } - // Request that addPassesToEmitFile run the Verifier after running - // passes which modify the IR. -#ifndef NDEBUG - bool DisableVerify = false; -#else - bool DisableVerify = true; -#endif - // Build up all of the passes that we want to do to the module. PassManager PM; @@ -312,9 +303,6 @@ int main(int argc, char **argv) { else PM.add(new TargetData(&mod)); - if (!NoVerify) - PM.add(createVerifierPass()); - // Override default to generate verbose assembly. Target.setAsmVerbosityDefault(true); @@ -328,7 +316,7 @@ int main(int argc, char **argv) { // Ask the target to add backend passes as necessary. if (Target.addPassesToEmitFile(PM, *Out, FileType, OLvl, - DisableVerify)) { + NoVerify)) { errs() << argv[0] << ": target does not support generation of this" << " file type!\n"; return 1; |