remove verifier command line option: this should be part of the API, not
authorChris Lattner <sabre@nondot.org>
Thu, 1 Nov 2007 04:43:13 +0000 (04:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Nov 2007 04:43:13 +0000 (04:43 +0000)
a command line optn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 72ceb60abe3a40d5321e880aa1cce0841e055782..29d19c3ed4cedd1b9a1ff30c5c3871776ce7afac 100644 (file)
@@ -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>
 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);
   }