[Driver] -noprofilelib flag
authorPetr Hosek <phosek@chromium.org>
Thu, 11 Jul 2019 19:06:38 +0000 (19:06 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 11 Jul 2019 19:06:38 +0000 (19:06 +0000)
commit08cb342afae142880218578a6539e0001ce30ef7
tree1a4dab7d3a9474c0056e41aecc12473d9b3b6ed5
parent5011b832373fd6424617749a66a5a34f2cba03df
[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.

llvm-svn: 365808
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChain.cpp
clang/test/Driver/noprofilelib.c [new file with mode: 0644]