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

Commit

Permalink
Merge pull request #45 from bitshifter/issue-30961
Browse files Browse the repository at this point in the history
Add accessors for MCSubtargetInfo CPU and Feature tables
  • Loading branch information
TimNN authored and alexcrichton committed Aug 15, 2017
2 parents d1b21e5 + 8dde670 commit 7625b0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/llvm/MC/MCSubtargetInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ class MCSubtargetInfo {
virtual std::string getSchedInfoStr(MCInst const &MCI) const {
return {};
}

ArrayRef<SubtargetFeatureKV> getCPUTable() const {
return ProcDesc;
}

ArrayRef<SubtargetFeatureKV> getFeatureTable() const {
return ProcFeatures;
}
};

} // end namespace llvm
Expand Down

0 comments on commit 7625b0c

Please sign in to comment.