diff options
author | Dean Michael Berris <dberris@google.com> | 2018-04-09 04:02:09 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-04-09 04:02:09 +0000 |
commit | 20dc6ef7464588762ad698084693030c946d70c7 (patch) | |
tree | 58fc7b626a7aedfa2db5a33390d8f5d5212acb5f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8d052a0dd23f1fd9e3fba1912bd514d2fd687871 (diff) | |
download | bcm5719-llvm-20dc6ef7464588762ad698084693030c946d70c7.tar.gz bcm5719-llvm-20dc6ef7464588762ad698084693030c946d70c7.zip |
[XRay][llvm+clang] Consolidate attribute list files
Summary:
This change consolidates the always/never lists that may be provided to
clang to externally control which functions should be XRay instrumented
by imbuing attributes. The files follow the same format as defined in
https://clang.llvm.org/docs/SanitizerSpecialCaseList.html for the
sanitizer blacklist.
We also deprecate the existing `-fxray-instrument-always=` and
`-fxray-instrument-never=` flags, in favour of `-fxray-attr-list=`.
This fixes http://llvm.org/PR34721.
Reviewers: echristo, vlad.tsyrklevich, eugenis
Reviewed By: vlad.tsyrklevich
Subscribers: llvm-commits, cfe-commits
Differential Revision: https://reviews.llvm.org/D45357
llvm-svn: 329543
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 1a3b67f0968..687dc688e1d 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2640,6 +2640,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Args.getAllArgValues(OPT_fxray_always_instrument); Opts.XRayNeverInstrumentFiles = Args.getAllArgValues(OPT_fxray_never_instrument); + Opts.XRayAttrListFiles = Args.getAllArgValues(OPT_fxray_attr_list); // -fallow-editor-placeholders Opts.AllowEditorPlaceholders = Args.hasArg(OPT_fallow_editor_placeholders); |