Browse Source

cmComputeLinkDepends: Re-arrange data layout.

Size goes from 648 to 632 bytes.
Stephen Kelly 10 years ago
parent
commit
54cb76f299
1 changed files with 7 additions and 11 deletions
  1. 7 11
      Source/cmComputeLinkDepends.h

+ 7 - 11
Source/cmComputeLinkDepends.h

@@ -61,14 +61,7 @@ private:
   cmMakefile* Makefile;
   cmMakefile* Makefile;
   cmGlobalGenerator const* GlobalGenerator;
   cmGlobalGenerator const* GlobalGenerator;
   cmake* CMakeInstance;
   cmake* CMakeInstance;
-  bool DebugMode;
-
-  // Configuration information.
-  bool HasConfig;
   std::string Config;
   std::string Config;
-  cmTarget::LinkLibraryType LinkType;
-
-  // Output information.
   EntryVector FinalLinkEntries;
   EntryVector FinalLinkEntries;
 
 
   typedef cmTarget::LinkLibraryVectorType LinkLibraryVectorType;
   typedef cmTarget::LinkLibraryVectorType LinkLibraryVectorType;
@@ -131,7 +124,7 @@ private:
   void OrderLinkEntires();
   void OrderLinkEntires();
   std::vector<char> ComponentVisited;
   std::vector<char> ComponentVisited;
   std::vector<int> ComponentOrder;
   std::vector<int> ComponentOrder;
-  int ComponentOrderId;
+
   struct PendingComponent
   struct PendingComponent
   {
   {
     // The real component id.  Needed because the map is indexed by
     // The real component id.  Needed because the map is indexed by
@@ -158,11 +151,14 @@ private:
 
 
   // Record of the original link line.
   // Record of the original link line.
   std::vector<int> OriginalEntries;
   std::vector<int> OriginalEntries;
+  std::set<cmTarget const*> OldWrongConfigItems;
+  void CheckWrongConfigItem(cmLinkItem const& item);
 
 
-  // Compatibility help.
+  int ComponentOrderId;
+  cmTarget::LinkLibraryType LinkType;
+  bool HasConfig;
+  bool DebugMode;
   bool OldLinkDirMode;
   bool OldLinkDirMode;
-  void CheckWrongConfigItem(cmLinkItem const& item);
-  std::set<cmTarget const*> OldWrongConfigItems;
 };
 };
 
 
 #endif
 #endif