summaryrefslogtreecommitdiff
path: root/test/Driver/noprofilelib.c
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-07-11 19:06:38 +0000
committerPetr Hosek <phosek@chromium.org>2019-07-11 19:06:38 +0000
commited03cf3d19767093e015d026698bcd3bd6a5c2e2 (patch)
tree4bebb3f03165195fd11ed162dc4251686539c126 /test/Driver/noprofilelib.c
parentac0a6267a5f7d55a288edccbff47925d9ddb4fc2 (diff)
downloadclang-ed03cf3d19767093e015d026698bcd3bd6a5c2e2.tar.gz
[Driver] -noprofilelib flag
This flag is analoguous to other flags like -nostdlib or -nolibc and could be used to disable linking of profile runtime library. This is useful in certain environments like kernel, where profile instrumentation is still desirable, but we cannot use the standard runtime library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/noprofilelib.c')
-rw-r--r--test/Driver/noprofilelib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/noprofilelib.c b/test/Driver/noprofilelib.c
new file mode 100644
index 0000000000..2a6970cc2c
--- /dev/null
+++ b/test/Driver/noprofilelib.c
@@ -0,0 +1,5 @@
+// RUN: %clang -target i686-pc-linux-gnu -### %s 2>&1 \
+// RUN: -fprofile-generate -noprofilelib | FileCheck %s
+// RUN: %clang -target i686-pc-linux-gnu -### %s 2>&1 \
+// RUN: -fprofile-instr-generate -noprofilelib | FileCheck %s
+// CHECK-NOT: clang_rt.profile