llvm-project/clang/lib
Steven Wu 15b385f854 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

llvm-svn: 228898
2015-02-12 02:06:55 +00:00
..
ARCMigrate Fix layering violation: include/clang/Basic/PlistSupport.h should not include 2015-01-28 20:14:54 +00:00
AST CXXInheritance: Modernize removal of hidden virtual base class decls. 2015-02-11 19:09:16 +00:00
ASTMatchers Add translationUnitDecl matcher. 2015-02-10 14:46:45 +00:00
Analysis Update APIs that return a pair of iterators to return an iterator_range instead. 2015-02-06 17:25:10 +00:00
Basic Preprocessor: support __BIGGEST_ALIGNMENT__ macro 2015-02-06 01:25:07 +00:00
CodeGen Add InlineAsmDiagnosticHandler for bitcode input 2015-02-12 02:06:55 +00:00
Driver [PowerPC] Remove the --no-tls-optimize workaround from the clang driver 2015-02-10 20:36:08 +00:00
Edit Edit: Do not extend a removal to include trailing whitespace if we're at the end 2014-09-15 11:47:10 +00:00
Format clang-format: Correctly mark preprocessor lines in child blocks. 2015-02-08 09:34:49 +00:00
Frontend Be more conservative about gethostname()'s truncating behaviour 2015-02-09 21:55:44 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers Make the byte-shift SSE intrinsics emit vector shuffles which we know the backend can handle. 2015-02-07 01:37:09 +00:00
Index [libclang] Use same USR encoding for 'char' regardless of what the target considers the sign to be. 2014-12-08 09:09:05 +00:00
Lex Update APIs that return a pair of iterators to return an iterator_range instead. 2015-02-06 17:25:10 +00:00
Parse Add a warning for direct-list-initialization of a variable with a deduced type 2015-02-11 02:41:33 +00:00
Rewrite Trim some includes. NFC. 2014-10-29 22:13:46 +00:00
Sema More for DR1467: In C++, when initializing an element of an aggregate, 2015-02-12 01:55:09 +00:00
Serialization [modules] Treat friend declarations that are lexically within a dependent 2015-02-07 03:11:11 +00:00
StaticAnalyzer [analyzer] Pass actual state to alloc/dealloc handling functions. 2015-02-10 20:13:08 +00:00
Tooling Adopt new cl::HideUnrelatedOptions API added r226729. 2015-01-21 23:26:11 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00