[PATCH] D18024: Remove compile time PreserveName switch based on NDEBUG
Mehdi AMINI via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 10 08:16:01 PST 2016
joker.eph added inline comments.
================
Comment at: lib/CodeGen/CodeGenAction.cpp:660-663
@@ -660,1 +659,6 @@
+ OwnsVMContext(!_VMContext) {
+#ifdef NDEBUG
+ _VMContext.setDiscardValueNames(true);
+#endif
+}
----------------
chandlerc wrote:
> I'm surprised this isn't a driver-side NDEBUG default flip? Can this still be overridden with a flag?
It's gonna be next patch: plumbing a cc1 flag somehow. Right now this is minimum patch to maintain existing behavior in clang while adapting to the IRBuilder API in LLVM.
http://reviews.llvm.org/D18024
More information about the cfe-commits
mailing list