mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
89061b2224
The new metadata is easier to manipulate than module flags. Differential Revision: https://reviews.llvm.org/D31349 llvm-svn: 305227
16 lines
606 B
Objective-C
16 lines
606 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck %s
|
|
// RUN: %clang_cc1 -emit-llvm -fno-autolink -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck --check-prefix=CHECK-AUTOLINK-DISABLED %s
|
|
|
|
@import AutolinkTBD;
|
|
|
|
int f() {
|
|
return foo();
|
|
}
|
|
|
|
// CHECK: !llvm.linker.options = !{![[AUTOLINK_FRAMEWORK:[0-9]+]]}
|
|
// CHECK: ![[AUTOLINK_FRAMEWORK]] = !{!"-framework", !"AutolinkTBD"}
|
|
|
|
// CHECK-AUTOLINK-DISABLED: !llvm.module.flags
|
|
// CHECK-AUTOLINK-DISABLED-NOT: !llvm.linker.options
|