summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/autolink.m
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-04-16 18:21:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-04-16 18:21:19 +0000
commite246fbe40bd86ce56fbb621aa414b5a5896441d2 (patch)
tree1946d39bed28d41a627e2da15724a9d18a462f21 /clang/test/Modules/autolink.m
parent0932a1ffff7c56e4785f4a04aff9ff6a14b50f8b (diff)
downloadbcm5719-llvm-e246fbe40bd86ce56fbb621aa414b5a5896441d2.tar.gz
bcm5719-llvm-e246fbe40bd86ce56fbb621aa414b5a5896441d2.zip
[Modules] Convert module specific -fno-modules-autolink into -fno-autolink.
- There is no reason to have a modules specific flag for disabling autolinking. Instead, convert the existing flag into -fno-autolink (which should cover other autolinking code generation paths like #pragmas if and when we support them). llvm-svn: 179612
Diffstat (limited to 'clang/test/Modules/autolink.m')
-rw-r--r--clang/test/Modules/autolink.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Modules/autolink.m b/clang/test/Modules/autolink.m
index 7f75473cbbd..4bf9d592a8f 100644
--- a/clang/test/Modules/autolink.m
+++ b/clang/test/Modules/autolink.m
@@ -1,5 +1,6 @@
// RUN: rm -rf %t
-// RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fmodules-autolink -F %S/Inputs -I %S/Inputs %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -F %S/Inputs -I %S/Inputs %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -fno-autolink -o - -fmodules-cache-path=%t -fmodules -F %S/Inputs -I %S/Inputs %s | FileCheck --check-prefix=CHECK-AUTOLINK-DISABLED %s
@import autolink.sub2;
@@ -38,3 +39,6 @@ int use_no_umbrella() {
// CHECK: ![[DEPENDSONMODULE]] = metadata !{metadata !"-framework", metadata !"DependsOnModule"}
// CHECK: ![[MODULE]] = metadata !{metadata !"-framework", metadata !"Module"}
// CHECK: ![[NOUMBRELLA]] = metadata !{metadata !"-framework", metadata !"NoUmbrella"}
+
+// CHECK-AUTOLINK-DISABLED: !llvm.module.flags
+// CHECK-AUTOLINK-DISABLED-NOT: "Linker Options"
OpenPOWER on IntegriCloud