cmComputeLinkDepends: Re-arrange data layout.

Size goes from 648 to 632 bytes.
This commit is contained in:
Stephen Kelly 2015-06-07 10:41:16 +02:00
parent b661d6c631
commit 54cb76f299

View File

@ -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;
// Compatibility help.
bool OldLinkDirMode;
void CheckWrongConfigItem(cmLinkItem const& item);
std::set<cmTarget const*> OldWrongConfigItems; std::set<cmTarget const*> OldWrongConfigItems;
void CheckWrongConfigItem(cmLinkItem const& item);
int ComponentOrderId;
cmTarget::LinkLibraryType LinkType;
bool HasConfig;
bool DebugMode;
bool OldLinkDirMode;
}; };
#endif #endif