From 5b06d9f202e468c717d70f8e8144780b59b93bca Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 28 Oct 2008 00:36:04 +0000 Subject: Don't run the verifier as part of IRgen, this is now down (per module) in the driver (this means we no longer run the verifier per function, however). llvm-svn: 58307 --- clang/lib/CodeGen/CodeGenModule.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index aaca21bab33..2ca893fb41f 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() { -- cgit v1.2.3