MC: Remove the copy of MCSchedModel in MCSubtargetInfo
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 10 Jul 2015 22:13:43 +0000 (22:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 10 Jul 2015 22:13:43 +0000 (22:13 +0000)
commitd819fac2945672f211b0ef8fdedffa2e124b46e2
treeb043f79060a78f08e594c9759465026c3eda63e5
parent722aa9573bf4d6b1a0b29fd3bd573fefafc20ebb
MC: Remove the copy of MCSchedModel in MCSubtargetInfo

`MCSchedModel` is large.  Make `MCSchedModel::GetDefaultSchedModel()`
return by-reference instead of by-value, so we can store a pointer in
`MCSubtargetInfo::CPUSchedModel` instead of a copy.

Note: since `MCSchedModel` is POD, this doesn't create a static
constructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241947 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSchedule.h
include/llvm/MC/MCSubtargetInfo.h
lib/MC/CMakeLists.txt
lib/MC/MCSchedule.cpp [new file with mode: 0644]
lib/MC/MCSubtargetInfo.cpp