#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;
// 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,
#include "llvm/Module.h"
#include "llvm/Intrinsics.h"
#include "llvm/Target/TargetData.h"
-#include "llvm/Analysis/Verifier.h"
using namespace clang;
using namespace CodeGen;
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() {