llvm-project/llvm/test/Instrumentation
Anna Zaks 119046098a [asan] Prevent __attribute__((annotate)) triggering errors on Darwin
The following code triggers a fatal error in the compiler instrumentation
of ASan on Darwin because we place the attribute into llvm.metadata section,
which does not have the proper MachO section name.

void foo() __attribute__((annotate("custom")));
void foo() {;}

This commit reorders the checks so that we skip everything in llvm.metadata
first. It also removes the hard failure in case the section name does not
parse. That check will be done lower in the compilation pipeline anyway.

(Reviewed in http://reviews.llvm.org/D9093.)

llvm-svn: 239379
2015-06-09 00:58:08 +00:00
..
AddressSanitizer [asan] Prevent __attribute__((annotate)) triggering errors on Darwin 2015-06-09 00:58:08 +00:00
BoundsChecking Add a bunch of CHECK missing colons in tests. NFC. 2015-03-14 01:43:57 +00:00
DataFlowSanitizer IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
InstrProfiling Final fix for PR 23499 and IR test case. 2015-05-27 19:34:01 +00:00
MemorySanitizer When checking msan.module_ctor, use CHECK-LABEL instead of CHECK 2015-05-07 21:47:25 +00:00
SanitizerCoverage IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
ThreadSanitizer TSan: Use `createSanitizerCtor` to create ctor, and call `__tsan_init` 2015-05-07 21:41:23 +00:00