diff options
author | Dean Michael Berris <dberris@google.com> | 2017-07-31 05:16:20 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-07-31 05:16:20 +0000 |
commit | 87f217d20bb24fa92a5882c2a565e1f14ad41e85 (patch) | |
tree | 32dab2da71e58366da6f8ef23347075e4523fcf2 /lib/xray | |
parent | 1c338cbe701cacb8136b58b0a62766b8ffe51fb5 (diff) |
[XRay][compiler-rt] Do not print the warning when the binary is not XRay instrumented.
Summary:
Currently when the XRay runtime is linked into a binary that doesn't
have the instrumentation map, we print a warning unconditionally. This
change attempts to make this behaviour more quiet.
Reviewers: kpw, pelikan
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D35789
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@309534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray')
-rw-r--r-- | lib/xray/xray_init.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xray/xray_init.cc b/lib/xray/xray_init.cc index aa660baa9..b46fa9880 100644 --- a/lib/xray/xray_init.cc +++ b/lib/xray/xray_init.cc @@ -49,7 +49,8 @@ XRaySledMap XRayInstrMap; void __xray_init() XRAY_NEVER_INSTRUMENT { initializeFlags(); if (__start_xray_instr_map == nullptr) { - Report("XRay instrumentation map missing. Not initializing XRay.\n"); + if (Verbosity()) + Report("XRay instrumentation map missing. Not initializing XRay.\n"); return; } |