summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-17 12:00:43 -0800
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-19 08:51:55 -0800
commit2520bef865329d4c04e2de30c222ad0d5ad13ccc (patch)
tree43ec1d6be2bdce8cb5141cfe3faebb80e09d4660 /clang/lib/Driver/ToolChains
parenta116f28a0d71c221c1dc023908b180beaf22799d (diff)
downloadbcm5719-llvm-2520bef865329d4c04e2de30c222ad0d5ad13ccc.tar.gz
bcm5719-llvm-2520bef865329d4c04e2de30c222ad0d5ad13ccc.zip
[Clang FE, SystemZ] Recognize -mrecord-mcount CL option.
Recognize -mrecord-mcount from the command line and add a function attribute "mrecord-mcount" when passed. Only valid on SystemZ (when used with -mfentry). Review: Ulrich Weigand https://reviews.llvm.org/D71627
Diffstat (limited to 'clang/lib/Driver/ToolChains')
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index a79c96d25d9..6b93dc2939e 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -4990,6 +4990,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (TC.SupportsProfiling())
Args.AddLastArg(CmdArgs, options::OPT_mnop_mcount);
+ if (TC.SupportsProfiling())
+ Args.AddLastArg(CmdArgs, options::OPT_mrecord_mcount);
+
Args.AddLastArg(CmdArgs, options::OPT_mpacked_stack);
if (Args.getLastArg(options::OPT_fapple_kext) ||
OpenPOWER on IntegriCloud