diff options
author | Tim Northover <tnorthover@apple.com> | 2016-03-31 19:19:24 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-03-31 19:19:24 +0000 |
commit | 8c824a07ae9196846fbc34cbb4be2f6cfa48516a (patch) | |
tree | 6c9856d7d722d9b485bf6a358b0bc873792b88aa /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 3da993c4192c64334bf667d53b74378b369973b3 (diff) | |
download | llvm-8c824a07ae9196846fbc34cbb4be2f6cfa48516a.zip llvm-8c824a07ae9196846fbc34cbb4be2f6cfa48516a.tar.gz llvm-8c824a07ae9196846fbc34cbb4be2f6cfa48516a.tar.bz2 |
Diagnostics: remove dodgy handler for bitcode inlineasm diagnostics.
Whatever crash it was there to present appears to have been fixed in the
backend now, and it had the nasty side-effect of causing clang to exit(0) and
leave a .o containing goodness knows what even when an error hit.
llvm-svn: 265038
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index edd258d3..658c2b8 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -756,12 +756,6 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { return std::move(Result); } -static void BitcodeInlineAsmDiagHandler(const llvm::SMDiagnostic &SM, - void *Context, - unsigned LocCookie) { - SM.print(nullptr, llvm::errs()); -} - void CodeGenAction::ExecuteAction() { // If this is an IR file, we have to treat it specially. if (getCurrentFileKind() == IK_LLVM_IR) { @@ -810,8 +804,6 @@ void CodeGenAction::ExecuteAction() { TheModule->setTargetTriple(TargetOpts.Triple); } - LLVMContext &Ctx = TheModule->getContext(); - Ctx.setInlineAsmDiagnosticHandler(BitcodeInlineAsmDiagHandler); EmitBackendOutput(CI.getDiagnostics(), CI.getCodeGenOpts(), TargetOpts, CI.getLangOpts(), CI.getTarget().getDataLayout(), TheModule.get(), BA, OS); |