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

Commit 01e00ed

Browse files
alexcrichtonarielb1
authored andcommitted
Merge pull request #45 from bitshifter/issue-30961
Add accessors for MCSubtargetInfo CPU and Feature tables
2 parents 0839bec + 68e1e29 commit 01e00ed

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
@@ -164,6 +164,14 @@ class MCSubtargetInfo {
164164
auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU);
165165
return Found != ProcDesc.end() && StringRef(Found->Key) == CPU;
166166
}
167+
168+
ArrayRef<SubtargetFeatureKV> getCPUTable() const {
169+
return ProcDesc;
170+
}
171+
172+
ArrayRef<SubtargetFeatureKV> getFeatureTable() const {
173+
return ProcFeatures;
174+
}
167175
};
168176

169177
} // End llvm namespace

0 commit comments

Comments
 (0)