This is an archive of the discontinued LLVM Phabricator instance.

Add InlineAsmDiagnosticHandler for bitcode input
ClosedPublic

Authored by steven_wu on Feb 11 2015, 1:27 PM.

Details

Summary

This is another attempt to silence the crash report for invalid inline asm
in bitcode input to clang.
Different from http://reviews.llvm.org/D7476, this patch installs an
InlineAsmDiagnosticsHandler to avoid the crash report. The handler will
simply print the same error message that will print from the backend.

Diff Detail

Repository
rL LLVM

Event Timeline

steven_wu updated this revision to Diff 19781.Feb 11 2015, 1:27 PM
steven_wu retitled this revision from to Add InlineAsmDiagnosticHandler for bitcode input.
steven_wu updated this object.
steven_wu edited the test plan for this revision. (Show Details)
steven_wu added a reviewer: echristo.
steven_wu added a subscriber: Unknown Object (MLST).
rafael accepted this revision.Feb 11 2015, 5:42 PM
rafael added a reviewer: rafael.
rafael added a subscriber: rafael.

Please also CHECK for what is actually printed.
LGTM with that.

This revision is now accepted and ready to land.Feb 11 2015, 5:42 PM
This revision was automatically updated to reflect the committed changes.

Thanks Rafael. Edit the test case and committed in r228898.
Have you got any chance to look at my email from the thread of r226503?

Steven