Commit Graph

11 Commits

Author SHA1 Message Date
Tim Northover 733e42df1c Restore slightly less dodgy diagnostic handler for inline asm
Turns out it was there mostly to prevent Clang asking people to report a bug.
This time we report something to Clang's real diagnostics handler so that it
exits with something approximating a real error and tidies up after itself.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265592 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-06 19:58:07 +00:00
Tim Northover 362757ea7a 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265038 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-31 19:19:24 +00:00
Nico Weber d375ede446 Reenable asm-errors.c
r134811 made the test pass and reenabled it, but r134831
accidentally disabled it again due to a bad merge.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263168 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-10 22:40:02 +00:00
Steven Wu 476ded5185 Add InlineAsmDiagnosticHandler for bitcode input
Summary:
This patch installs an InlineAsmDiagnosticsHandler to avoid the crash
report when the input is bitcode and the bitcode contains invalid inline
assembly. The handler will simply print the same error message that will
print from the backend.

Add CHECK in test-case

Reviewers: echristo, rafael

Reviewed By: rafael

Subscribers: rafael, cfe-commits

Differential Revision: http://reviews.llvm.org/D7568

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228898 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-12 02:06:55 +00:00
Chris Lattner 9cbe4f0ba0 clang side to match the LLVM IR type system rewrite patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134831 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 17:41:47 +00:00
Evan Cheng f0733249ff cc1 must initialize MC subtarget infos for inline asm parsing. Re-enable asm-errors.c
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134811 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 07:32:07 +00:00
Chris Lattner 287d491581 disable this test to get the botz green again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134808 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-09 07:14:54 +00:00
Galina Kistanova 0ccb31c389 These tests require particular registered targets. Declared as such.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132600 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-03 22:24:54 +00:00
Chris Lattner fdc9025bb7 Due to asmparser improvements, this error message is now better
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113177 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-06 22:09:27 +00:00
Chandler Carruth b225233dce Prevent these tests from dirtying the tree with output files that aren't even
used for the test.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110431 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-06 05:29:57 +00:00
Chris Lattner 914803f5d5 add a testcase that the integrated assembler rejects, this verifies
that the integrated assembler is working.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100545 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-06 18:46:25 +00:00