]> granicus.if.org Git - clang/commitdiff
CodeGenObjC/instr-profile.m: Add -target darwin to appease bots.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 6 Mar 2014 07:29:30 +0000 (07:29 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 6 Mar 2014 07:29:30 +0000 (07:29 +0000)
This expected;
  ; Function Attrs: uwtable
  define internal void @"\01+[A foreach:]"(i8* %self, i8* %_cmd, %0* %array) #0 {

But the Name is mangled on other hosts; (x86_64-unknown-unknown)
  ; Function Attrs: nounwind uwtable
  define internal void @_c_A__foreach_(i8* %self, i8* %_cmd, %1* %array) #0 {

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

test/CodeGenObjC/instr-profile.m

index 5fa43ef9cc60e5daf5e752a28b338a04a3f1b382..22f612b7581a40da5ee64eb3cb4f32c1cd0f5042 100644 (file)
@@ -4,8 +4,8 @@
 // of running the program generated by the -fprofile-instr-generate case. As
 // such, main() should call every function in this test.
 
-// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s
-// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.profdata | FileCheck -check-prefix=PGOUSE %s
+// RUN: %clang -target x86_64-darwin %s -o - -emit-llvm -S -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s
+// RUN: %clang -target x86_64-darwin %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.profdata | FileCheck -check-prefix=PGOUSE %s
 
 #ifdef HAVE_FOUNDATION