aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/SubtargetFeature.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-05 21:43:57 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-05 21:43:57 +0000
commit98eb98b0f2e6573f5aee67ce3e75624392d637b7 (patch)
tree95d5e86b1b4be80756c23980cb54d5508eeec12c /lib/MC/SubtargetFeature.cpp
parentb438615abdc826a2fef33895b50dc60e3f39f988 (diff)
downloadexternal_llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.zip
external_llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.tar.gz
external_llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.tar.bz2
Constify subtarget info properly so that we dont cast away the const in
the SubtargetInfoKV tables. Found by gcc48 -Wcast-qual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/SubtargetFeature.cpp')
-rw-r--r--lib/MC/SubtargetFeature.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp
index 0a44e77..f43197b 100644
--- a/lib/MC/SubtargetFeature.cpp
+++ b/lib/MC/SubtargetFeature.cpp
@@ -337,9 +337,9 @@ uint64_t SubtargetFeatures::getFeatureBits(const StringRef CPU,
}
/// Get scheduling itinerary of a CPU.
-void *SubtargetFeatures::getItinerary(const StringRef CPU,
- const SubtargetInfoKV *Table,
- size_t TableSize) {
+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++) {