aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/SubtargetFeature.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-10-03 06:26:11 +0000
committerCraig Topper <craig.topper@gmail.com>2012-10-03 06:26:11 +0000
commit3138659646f3d60a7ee70d49cc03067e3f27a3dc (patch)
treebd97880a684c30e2aa3696ee6ee2f482512f790f /lib/MC/SubtargetFeature.cpp
parent12d57c0b853867fe487b2d094691e97733d30358 (diff)
downloadexternal_llvm-3138659646f3d60a7ee70d49cc03067e3f27a3dc.zip
external_llvm-3138659646f3d60a7ee70d49cc03067e3f27a3dc.tar.gz
external_llvm-3138659646f3d60a7ee70d49cc03067e3f27a3dc.tar.bz2
Remove unused function that used to get itineraries from SubTargetFeatures. This is done from MCSubTargetInfo these days.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/SubtargetFeature.cpp')
-rw-r--r--lib/MC/SubtargetFeature.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp
index 1537579..8a52284 100644
--- a/lib/MC/SubtargetFeature.cpp
+++ b/lib/MC/SubtargetFeature.cpp
@@ -336,30 +336,6 @@ uint64_t SubtargetFeatures::getFeatureBits(const StringRef CPU,
return Bits;
}
-/// Get scheduling itinerary of a CPU.
-const void *SubtargetFeatures::getItinerary(const StringRef CPU,
- const SubtargetInfoKV *Table,
- size_t TableSize) {
- assert(Table && "missing table");
-#ifndef NDEBUG
- for (size_t i = 1; i < TableSize; i++) {
- assert(strcmp(Table[i - 1].Key, Table[i].Key) < 0 && "Table is not sorted");
- }
-#endif
-
- // Find entry
- const SubtargetInfoKV *Entry = Find(CPU, Table, TableSize);
-
- if (Entry) {
- return Entry->Value;
- } else {
- errs() << "'" << CPU
- << "' is not a recognized processor for this target"
- << " (ignoring processor)\n";
- return NULL;
- }
-}
-
/// print - Print feature string.
///
void SubtargetFeatures::print(raw_ostream &OS) const {