[PATCH] D19754: Allow 'nodebug' on local variables

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 11:52:30 PDT 2016


dblaikie added inline comments.

================
Comment at: test/CodeGenCXX/debug-info-nodebug.cpp:50
@@ -49,1 +49,3 @@
   NODEBUG static int static_local = 6;
+  NODEBUG const  int const_local = 7;
+  NODEBUG        int normal_local = 8;
----------------
Doesn't look like the const case is any different from the non-const case, is it?

================
Comment at: test/CodeGenObjC/debug-info-nodebug.m:17
@@ +16,3 @@
+  // CHECK-NOT: !DILocalVariable(name: "strongSelf"
+  __attribute__((nodebug)) __typeof(self) weakSelf = self;
+  Block = [^{
----------------
Is this case outside of the block interesting in some way? It doesn't look like it.


http://reviews.llvm.org/D19754





More information about the cfe-commits mailing list