summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/instrprof-ld.c
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-05-12 06:30:48 +0000
committerJustin Bogner <mail@justinbogner.com>2015-05-12 06:30:48 +0000
commit2fd95f6b92aa28705aea26da878c51c33143022c (patch)
tree1e491bad119ad9dbd9f45be6788318f56e35b862 /clang/test/Driver/instrprof-ld.c
parentd84713bd8687abc4a70ab25eddb30e22a8731955 (diff)
downloadbcm5719-llvm-2fd95f6b92aa28705aea26da878c51c33143022c.tar.gz
bcm5719-llvm-2fd95f6b92aa28705aea26da878c51c33143022c.zip
Driver: Fix a -Wshadow issue from r237091
The MachO toolchain has an isTargetIOSBased method, but it isn't virtual so it isn't very meaningful to call it. After thinking about this, I guess that putting this logic in the MachO class is a bit of a layering violation anyway. Do this more like how we handle AddLinkRuntimeLibArgs instead. llvm-svn: 237095
Diffstat (limited to 'clang/test/Driver/instrprof-ld.c')
-rw-r--r--clang/test/Driver/instrprof-ld.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/instrprof-ld.c b/clang/test/Driver/instrprof-ld.c
index fb99ab3142e..cd926cd186b 100644
--- a/clang/test/Driver/instrprof-ld.c
+++ b/clang/test/Driver/instrprof-ld.c
@@ -81,3 +81,11 @@
//
// CHECK-DARWIN-NOSTDLIB-X86-64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
// CHECK-DARWIN-NOSTDLIB-X86-64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}darwin{{/|\\\\}}libclang_rt.profile_osx.a"
+//
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
+// RUN: -target arm64-apple-ios -fprofile-instr-generate \
+// RUN: -resource-dir=%S/Inputs/resource_dir \
+// RUN: | FileCheck --check-prefix=CHECK-DARWIN-ARM64 %s
+//
+// CHECK-DARWIN-ARM64: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
+// CHECK-DARWIN-ARM64: "{{.*}}/Inputs/resource_dir{{/|\\\\}}lib{{/|\\\\}}darwin{{/|\\\\}}libclang_rt.profile_ios.a"
OpenPOWER on IntegriCloud