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 by tying it to the
Verbosity setting.
We only print the error when Verbosity is set to anything other than 0.
The Verbosity setting is parsed by the sanitizer_common library, which defines
a common set of flags for the sanitizers. The default verbosity set by
sanitizer_common is 0. XRay already depends on this library and the flags
defined there.
Does this test the default (the comment says it checks what happens when there are no XRay instrumentation sleds - but the code seems to explicitly specify verbosity, rather than relying on any default based on the presence/absence of sleds? (unless that would override the XRAY_OPTIONS?))
Seems like it might be better to phrase this whole change, etc in terms of tying it into the verbosity level & mention as an aside that this means it defaults to off. (& I don't think it's necessary to test that default if the compiler-rt verbosity work already handles the default, tests & documents it, etc))