diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-01 04:43:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-01 04:43:13 +0000 |
commit | b5c91641b554c43b859e1b75679797c5356045b6 (patch) | |
tree | 29e9f54f7be093e6e1172adfcdef6fed6f588c68 /lib/VMCore/Verifier.cpp | |
parent | 269f80c71bc68a8526eb539bc8584ac59e77d1a4 (diff) | |
download | external_llvm-b5c91641b554c43b859e1b75679797c5356045b6.zip external_llvm-b5c91641b554c43b859e1b75679797c5356045b6.tar.gz external_llvm-b5c91641b554c43b859e1b75679797c5356045b6.tar.bz2 |
remove verifier command line option: this should be part of the API, not
a command line optn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 72ceb60..29d19c3 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -60,7 +60,6 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include <algorithm> #include <sstream> @@ -68,10 +67,6 @@ using namespace llvm; namespace { // Anonymous namespace for class - cl::opt<bool> - Pedantic("verify-pedantic", - cl::desc("Reject code with undefined behaviour")); - struct VISIBILITY_HIDDEN PreVerifier : public FunctionPass { static char ID; // Pass ID, replacement for typeid @@ -830,12 +825,6 @@ void Verifier::visitCallInst(CallInst &CI) { CI.getOperand(i+1), FTy->getParamType(i), &CI); if (Function *F = CI.getCalledFunction()) { - if (Pedantic) { - // Verify that calling convention of Function and CallInst match - Assert1(F->getCallingConv() == CI.getCallingConv(), - "Call uses different calling convention than function", &CI); - } - if (Intrinsic::ID ID = (Intrinsic::ID)F->getIntrinsicID()) visitIntrinsicFunctionCall(ID, CI); } |