diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-08 18:25:47 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-08 18:25:47 +0000 |
commit | 0076ad7eebb46c07288eec20e385dd8eaff736fb (patch) | |
tree | ad0dcd7720b0de08ed10d6deaad6af7a44e44649 /utils/TableGen/SubtargetEmitter.cpp | |
parent | 28dd960cd1c346c5beef4585d6ea68ae31be0faf (diff) |
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
Diffstat (limited to 'utils/TableGen/SubtargetEmitter.cpp')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 764fc88c2e..5911d9856f 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -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 |