Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 7625b0c

Browse files
TimNNalexcrichton
authored andcommitted
Merge pull request #45 from bitshifter/issue-30961
Add accessors for MCSubtargetInfo CPU and Feature tables
2 parents d1b21e5 + 8dde670 commit 7625b0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/llvm/MC/MCSubtargetInfo.h

+8
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ class MCSubtargetInfo {
184184
virtual std::string getSchedInfoStr(MCInst const &MCI) const {
185185
return {};
186186
}
187+
188+
ArrayRef<SubtargetFeatureKV> getCPUTable() const {
189+
return ProcDesc;
190+
}
191+
192+
ArrayRef<SubtargetFeatureKV> getFeatureTable() const {
193+
return ProcFeatures;
194+
}
187195
};
188196

189197
} // end namespace llvm

0 commit comments

Comments
 (0)