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

Commit 786aad1

Browse files
authored
Merge pull request #46 from bitshifter/issue-30961-2
Add accessors for MCSubtargetInfo CPU and Feature tables
2 parents d1cc489 + d295833 commit 786aad1

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)