OSDN Git Service

Guard fields by NDEBUG until they get used in the release build.
authorAndrew Trick <atrick@apple.com>
Sun, 16 Sep 2012 05:55:04 +0000 (05:55 +0000)
committerAndrew Trick <atrick@apple.com>
Sun, 16 Sep 2012 05:55:04 +0000 (05:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163993 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCSchedule.h

index 99afb10..af68a29 100644 (file)
@@ -172,10 +172,10 @@ private:
   unsigned ProcID;
   const MCProcResourceDesc *ProcResourceTable;
   const MCSchedClassDesc *SchedClassTable;
-
+#ifndef NDEBUG
   unsigned NumProcResourceKinds;
   unsigned NumSchedClasses;
-
+#endif
   // Instruction itinerary tables used by InstrItineraryData.
   friend class InstrItineraryData;
   const InstrItinerary *InstrItineraries;