adjust for llvm mainline, yay type safety

llvm-svn: 119487
This commit is contained in:
Chris Lattner 2010-11-17 08:13:04 +00:00
parent b0e36085c4
commit 068f2ab10f
1 changed files with 3 additions and 3 deletions

View File

@ -121,10 +121,10 @@ namespace {
// Install an inline asm handler so that diagnostics get printed through
// our diagnostics hooks.
LLVMContext &Ctx = TheModule->getContext();
void *OldHandler = Ctx.getInlineAsmDiagnosticHandler();
LLVMContext::InlineAsmDiagHandlerTy OldHandler =
Ctx.getInlineAsmDiagnosticHandler();
void *OldContext = Ctx.getInlineAsmDiagnosticContext();
Ctx.setInlineAsmDiagnosticHandler((void*)(intptr_t)InlineAsmDiagHandler,
this);
Ctx.setInlineAsmDiagnosticHandler(InlineAsmDiagHandler, this);
EmitBackendOutput(Diags, CodeGenOpts, TargetOpts,
TheModule.get(), Action, AsmOutStream);