[PATCH] D35789: [XRay][compiler-rt] Do not print the warning when the binary is not XRay instrumented.
Dean Michael Berris via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 01:50:27 PDT 2017
dberris created this revision.
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.
https://reviews.llvm.org/D35789
Files:
lib/xray/xray_init.cc
Index: lib/xray/xray_init.cc
===================================================================
--- lib/xray/xray_init.cc
+++ lib/xray/xray_init.cc
@@ -48,7 +48,7 @@
// and then proceed to look for the .xray_instr_map section/segment.
void __xray_init() XRAY_NEVER_INSTRUMENT {
initializeFlags();
- if (__start_xray_instr_map == nullptr) {
+ if (__start_xray_instr_map == nullptr && common_flags()->verbosity) {
Report("XRay instrumentation map missing. Not initializing XRay.\n");
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35789.107864.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170724/ff989a70/attachment.bin>
More information about the llvm-commits
mailing list