Add a instrumentation test for Linux
authorXinliang David Li <davidxl@google.com>
Wed, 14 Oct 2015 07:24:14 +0000 (07:24 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 14 Oct 2015 07:24:14 +0000 (07:24 +0000)
Make sure __llvm_profile_init is not emitted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250274 91177308-0d34-0410-b5e6-96231b3b80d8

test/Instrumentation/InstrProfiling/platform.ll

index cc380d54bd59478e0ace9f640773d3af1bd9cb45..e2c3839d4f11c3c1c854bb6bf7cc05976099c840 100644 (file)
@@ -29,4 +29,5 @@ declare void @llvm.instrprof.increment(i8*, i64, i32, i32)
 ; BSD: define internal void @__llvm_profile_register_functions
 
 ; MACHO-NOT: define internal void @__llvm_profile_init
 ; BSD: define internal void @__llvm_profile_register_functions
 
 ; MACHO-NOT: define internal void @__llvm_profile_init
+; LINUX-NOT: define internal void @__llvm_profile_init
 ; BSD: define internal void @__llvm_profile_init
 ; BSD: define internal void @__llvm_profile_init