[PATCH] D40601: [XRay][clang] Introduce -fxray-always-emit-customevents

Dean Michael Berris via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 15:51:01 PST 2017


dberris added inline comments.


================
Comment at: clang/lib/Driver/XRayArgs.cpp:32-33
 constexpr char XRayNeverInstrumentOption[] = "-fxray-never-instrument=";
+constexpr char XRayAlwaysEmitCustomEventsOption[] =
+    "-fxray-always-emit-customevents";
 } // namespace
----------------
dblaikie wrote:
> Not clear to me there's a benefit to having these defined as constants versus using the literal directly - other parts of the driver use literals directly & there's are mostly used just once?
Good point. I was following the convention used in the SanitizerArgs implementation. I've moved the ones that haven't been repeated in this file in-line instead.


https://reviews.llvm.org/D40601





More information about the cfe-commits mailing list