commit | 98eb98b0f2e6573f5aee67ce3e75624392d637b7 | [log] [tgz] |
---|---|---|
author | Roman Divacky <rdivacky@freebsd.org> | Wed Sep 05 21:43:57 2012 +0000 |
committer | Roman Divacky <rdivacky@freebsd.org> | Wed Sep 05 21:43:57 2012 +0000 |
tree | 95d5e86b1b4be80756c23980cb54d5508eeec12c | |
parent | b438615abdc826a2fef33895b50dc60e3f39f988 [diff] [blame] |
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
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 3472343..5dfd716 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp
@@ -626,7 +626,7 @@ // Emit as { "cpu", procinit }, OS << " { " << "\"" << Name << "\", " - << "(void *)&" << ProcModelName; + << "(const void *)&" << ProcModelName; OS << " }";