summaryrefslogtreecommitdiff
path: root/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
commitcb648f90a26eb05ae8d508d500ca12881df50824 (patch)
tree8c3bb052505c1aa007d453755f4ee921341127c8 /utils/TableGen/CodeGenRegisters.h
parent7effac5475c9057dd1c384d33f41d518ff387207 (diff)
downloadllvm-cb648f90a26eb05ae8d508d500ca12881df50824.tar.gz
llvm-cb648f90a26eb05ae8d508d500ca12881df50824.tar.bz2
llvm-cb648f90a26eb05ae8d508d500ca12881df50824.tar.xz
Remove spurious consts. This fixes warnings with compilers that
are strict about such things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenRegisters.h')
-rw-r--r--utils/TableGen/CodeGenRegisters.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h
index 83c85b8f3a..cee81e9092 100644
--- a/utils/TableGen/CodeGenRegisters.h
+++ b/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!");