summaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2019-03-04 20:30:30 +0000
committerManman Ren <manman.ren@gmail.com>2019-03-04 20:30:30 +0000
commitc34654039c07d6911567100739fcb60f6c750401 (patch)
treeda01d80d703c650c6dc8a64d2abdc78ff8b7107c /lib/Driver/ToolChain.cpp
parent2f3e65f35906044e5f7dcd39bcd119e63db29fc7 (diff)
downloadclang-c34654039c07d6911567100739fcb60f6c750401.tar.gz
Order File Instrumentation: add clang support for -forder-file-instrumentation
When -forder-file-instrumentation is on, we pass llvm flag to enable the order file instrumentation pass. https://reviews.llvm.org/D58751 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChain.cpp')
-rw-r--r--lib/Driver/ToolChain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp
index 93a8d90a84..a89983d955 100644
--- a/lib/Driver/ToolChain.cpp
+++ b/lib/Driver/ToolChain.cpp
@@ -409,7 +409,8 @@ bool ToolChain::needsProfileRT(const ArgList &Args) {
Args.hasArg(options::OPT_fcs_profile_generate_EQ) ||
Args.hasArg(options::OPT_fprofile_instr_generate) ||
Args.hasArg(options::OPT_fprofile_instr_generate_EQ) ||
- Args.hasArg(options::OPT_fcreate_profile))
+ Args.hasArg(options::OPT_fcreate_profile) ||
+ Args.hasArg(options::OPT_forder_file_instrumentation))
return true;
return false;