diff options
author | Petr Hosek <phosek@chromium.org> | 2019-07-11 19:06:38 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-07-11 19:06:38 +0000 |
commit | ed03cf3d19767093e015d026698bcd3bd6a5c2e2 (patch) | |
tree | 4bebb3f03165195fd11ed162dc4251686539c126 /test/Driver/noprofilelib.c | |
parent | ac0a6267a5f7d55a288edccbff47925d9ddb4fc2 (diff) | |
download | clang-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.c | 5 |
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 |