Sched itinerary fix: Avoid static initializers.

This fixes an accidental dependence on static initialization order that I introduced yesterday.

Thank you Lang!!!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick
2012-06-08 18:25:47 +00:00
parent 28dd960cd1
commit 0076ad7eeb
2 changed files with 13 additions and 4 deletions

View File

@@ -485,7 +485,7 @@ void SubtargetEmitter::EmitItineraryProp(raw_ostream &OS, const Record *R,
if (V >= 0)
OS << V << Separator << " // " << Name;
else
OS << "DefaultItineraryProps." << Name << Separator;
OS << "InstrItineraryProps::Default" << Name << Separator;
OS << '\n';
}
@@ -496,7 +496,6 @@ void SubtargetEmitter::
EmitProcessorData(raw_ostream &OS,
std::vector<Record*> &ItinClassList,
std::vector<std::vector<InstrItinerary> > &ProcList) {
OS << "static const llvm::InstrItineraryProps " << "DefaultItineraryProps;";
// Get an iterator for processor itinerary stages
std::vector<std::vector<InstrItinerary> >::iterator