diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 21:43:57 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 21:43:57 +0000 |
commit | 98eb98b0f2e6573f5aee67ce3e75624392d637b7 (patch) | |
tree | 95d5e86b1b4be80756c23980cb54d5508eeec12c /include/llvm/MC/MCSubtargetInfo.h | |
parent | b438615abdc826a2fef33895b50dc60e3f39f988 (diff) | |
download | llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.tar.gz llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.tar.bz2 llvm-98eb98b0f2e6573f5aee67ce3e75624392d637b7.tar.xz |
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 'include/llvm/MC/MCSubtargetInfo.h')
-rw-r--r-- | include/llvm/MC/MCSubtargetInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h index 31d632de60..6c96f49716 100644 --- a/include/llvm/MC/MCSubtargetInfo.h +++ b/include/llvm/MC/MCSubtargetInfo.h @@ -72,7 +72,7 @@ public: /// getSchedModelForCPU - Get the machine model of a CPU. /// - MCSchedModel *getSchedModelForCPU(StringRef CPU) const; + const MCSchedModel *getSchedModelForCPU(StringRef CPU) const; /// getInstrItineraryForCPU - Get scheduling itinerary of a CPU. /// |