summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenRegisters.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-14 20:08:19 +0000
committerDan Gohman <gohman@apple.com>2007-09-14 20:08:19 +0000
commit58c468fb09fd79c6f0af348f8185734b46766100 (patch)
tree64f466d332ff2d380c342634181addc1b5a182f8 /llvm/utils/TableGen/CodeGenRegisters.h
parentaefb23092ca0be00a2bde958518039102d7939fe (diff)
downloadbcm5719-llvm-58c468fb09fd79c6f0af348f8185734b46766100.tar.gz
bcm5719-llvm-58c468fb09fd79c6f0af348f8185734b46766100.zip
Remove spurious consts. This fixes warnings with compilers that
are strict about such things. llvm-svn: 41956
Diffstat (limited to 'llvm/utils/TableGen/CodeGenRegisters.h')
-rw-r--r--llvm/utils/TableGen/CodeGenRegisters.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.h b/llvm/utils/TableGen/CodeGenRegisters.h
index 83c85b8f3a9..cee81e9092c 100644
--- a/llvm/utils/TableGen/CodeGenRegisters.h
+++ b/llvm/utils/TableGen/CodeGenRegisters.h
@@ -45,7 +45,7 @@ namespace llvm {
const std::vector<MVT::ValueType> &getValueTypes() const { return VTs; }
unsigned getNumValueTypes() const { return VTs.size(); }
- const MVT::ValueType getValueTypeNum(unsigned VTNum) const {
+ MVT::ValueType getValueTypeNum(unsigned VTNum) const {
if (VTNum < VTs.size())
return VTs[VTNum];
assert(0 && "VTNum greater than number of ValueTypes in RegClass!");
OpenPOWER on IntegriCloud