mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user