diff options
author | Pete Cooper <peter_cooper@apple.com> | 2014-09-02 17:43:54 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2014-09-02 17:43:54 +0000 |
commit | 11759457101688ed50ed14725c78df5406f82bd8 (patch) | |
tree | 10706fd2d622d2c0499f665cadaaee951c8d6291 /llvm/lib/Target/ARM | |
parent | 505e1b829fd181a12ffc4b62f00cbe8d61c92c2c (diff) | |
download | bcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.tar.gz bcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.zip |
Change MCSchedModel to be a struct of statically initialized data.
This removes static initializers from the backends which generate this data, and also makes this struct match the other Tablegen generated structs in behaviour
Reviewed by Andy Trick and Chandler C
llvm-svn: 216919
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index 25f2316a555..0a193ee2d1a 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -415,7 +415,7 @@ ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, } unsigned ARMSubtarget::getMispredictionPenalty() const { - return SchedModel->MispredictPenalty; + return SchedModel.MispredictPenalty; } bool ARMSubtarget::hasSinCos() const { diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 8b40f2f1932..05102b339d0 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -219,7 +219,7 @@ protected: Triple TargetTriple; /// SchedModel - Processor specific instruction costs. - const MCSchedModel *SchedModel; + MCSchedModel SchedModel; /// Selected instruction itineraries (one entry per itinerary class.) InstrItineraryData InstrItins; |