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
alexcrichton authored Jul 18, 2016
2 parents 7ca76af + 31d7a40 commit a3c12a7
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 @@ -163,6 +163,14 @@ class MCSubtargetInfo {
auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU);
return Found != ProcDesc.end() && StringRef(Found->Key) == CPU;
}

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

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

} // End llvm namespace
Expand Down

0 comments on commit a3c12a7

Please sign in to comment.