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 /utils | |
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 'utils')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 3472343959..5dfd716d89 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -626,7 +626,7 @@ void SubtargetEmitter::EmitProcessorLookup(raw_ostream &OS) { // Emit as { "cpu", procinit }, OS << " { " << "\"" << Name << "\", " - << "(void *)&" << ProcModelName; + << "(const void *)&" << ProcModelName; OS << " }"; |