[PATCH] [sanitizer] Introduce VerboseReport and use it in sanitizer code.

Sergey Matveev earthdok at google.com
Tue Dec 3 04:16:15 PST 2013


  > this change makes the code more compact

  That's the motivation. Especially in StopTheWorld there's a lot of "if (common_flags()->verbosity) ..." going on, and the code is hard enough to understand as it is. Also, we can now more easily see what happens at which verbosity level (no more "> 0" vs ">= 1").

  > we now call GetCurrentTidOrInvalid unconditionally
  Yeah, that kind of sucks. Also I should probably make it into a macro to avoid extra function calls in asan_poisoning.cc.

http://llvm-reviews.chandlerc.com/D2316



More information about the llvm-commits mailing list