summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/XRayLists.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/XRayLists.cpp')
-rw-r--r--clang/lib/Basic/XRayLists.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/XRayLists.cpp b/clang/lib/Basic/XRayLists.cpp
index dccf3baa75e..0a439c7af90 100644
--- a/clang/lib/Basic/XRayLists.cpp
+++ b/clang/lib/Basic/XRayLists.cpp
@@ -26,6 +26,8 @@ XRayFunctionFilter::ImbueAttribute
XRayFunctionFilter::shouldImbueFunction(StringRef FunctionName) const {
// First apply the always instrument list, than if it isn't an "always" see
// whether it's treated as a "never" instrument function.
+ if (AlwaysInstrument->inSection("fun", FunctionName, "arg1"))
+ return ImbueAttribute::ALWAYS_ARG1;
if (AlwaysInstrument->inSection("fun", FunctionName))
return ImbueAttribute::ALWAYS;
if (NeverInstrument->inSection("fun", FunctionName))
OpenPOWER on IntegriCloud