[llvm-commits] [llvm] r163993 - /llvm/trunk/include/llvm/MC/MCSchedule.h

Andrew Trick atrick at apple.com
Sat Sep 15 22:55:04 PDT 2012


Author: atrick
Date: Sun Sep 16 00:55:04 2012
New Revision: 163993

URL: http://llvm.org/viewvc/llvm-project?rev=163993&view=rev
Log:
Guard fields by NDEBUG until they get used in the release build.

Modified:
    llvm/trunk/include/llvm/MC/MCSchedule.h

Modified: llvm/trunk/include/llvm/MC/MCSchedule.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSchedule.h?rev=163993&r1=163992&r2=163993&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSchedule.h (original)
+++ llvm/trunk/include/llvm/MC/MCSchedule.h Sun Sep 16 00:55:04 2012
@@ -172,10 +172,10 @@
   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;





More information about the llvm-commits mailing list