[cfe-commits] r58307 - in /cfe/trunk/lib/CodeGen: CodeGenFunction.cpp CodeGenModule.cpp

Daniel Dunbar daniel at zuster.org
Mon Oct 27 17:36:04 PDT 2008


Author: ddunbar
Date: Mon Oct 27 19:36:04 2008
New Revision: 58307

URL: http://llvm.org/viewvc/llvm-project?rev=58307&view=rev
Log:
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).

Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=58307&r1=58306&r2=58307&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Mon Oct 27 19:36:04 2008
@@ -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 @@
   // 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, 

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=58307&r1=58306&r2=58307&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Oct 27 19:36:04 2008
@@ -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 @@
   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() {





More information about the cfe-commits mailing list