diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 2ee08eae17ce..acce366ae933 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -17,7 +17,6 @@ #include "clang/Basic/TargetInfo.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" -#include "llvm/Analysis/Verifier.h" #include "llvm/Support/CFG.h" using namespace clang; using namespace CodeGen; @@ -88,12 +87,6 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { // Remove the AllocaInsertPt instruction, which is just a convenience for us. AllocaInsertPt->eraseFromParent(); AllocaInsertPt = 0; - - // Verify that the function is well formed. - if (verifyFunction(*CurFn, llvm::PrintMessageAction)) { - CurFn->dump(); - assert(0 && "Function failed verification!"); - } } void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index aaca21bab33b..2ca893fb41fe 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -25,7 +25,6 @@ #include "llvm/Module.h" #include "llvm/Intrinsics.h" #include "llvm/Target/TargetData.h" -#include "llvm/Analysis/Verifier.h" using namespace clang; using namespace CodeGen; @@ -64,11 +63,6 @@ void CodeGenModule::Release() { EmitCtorList(GlobalDtors, "llvm.global_dtors"); EmitAnnotations(); BindRuntimeFunctions(); - // Run the verifier to check that the generated code is consistent. - if (verifyModule(TheModule, llvm::PrintMessageAction)) { - TheModule.dump(); - assert(0 && "Module failed verification!"); - } } void CodeGenModule::BindRuntimeFunctions() {