[PATCH] D14047: [MC] Get rid of NDEBUG in headers
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 11:31:41 PDT 2015
davide updated this revision to Diff 38352.
davide added a comment.
You're right, my bad. New diff.
http://reviews.llvm.org/D14047
Files:
llvm/MC/MCSchedule.h
Index: llvm/MC/MCSchedule.h
===================================================================
--- llvm/MC/MCSchedule.h
+++ llvm/MC/MCSchedule.h
@@ -24,9 +24,7 @@
/// Define a kind of processor resource that will be modeled by the scheduler.
struct MCProcResourceDesc {
-#ifndef NDEBUG
const char *Name;
-#endif
unsigned NumUnits; // Number of resource of this kind
unsigned SuperIdx; // Index of the resources kind that contains this kind.
@@ -102,9 +100,7 @@
static const unsigned short InvalidNumMicroOps = UINT16_MAX;
static const unsigned short VariantNumMicroOps = UINT16_MAX - 1;
-#ifndef NDEBUG
- const char* Name;
-#endif
+ const char *Name;
unsigned short NumMicroOps;
bool BeginGroup;
bool EndGroup;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14047.38352.patch
Type: text/x-patch
Size: 754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151025/07e3606d/attachment.bin>
More information about the llvm-commits
mailing list