diff options
author | Dan Gohman <djg@cray.com> | 2007-09-14 20:08:19 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-09-14 20:08:19 +0000 |
commit | 5f222be33b97130f9a858851ced893df2ee11586 (patch) | |
tree | 8c3bb052505c1aa007d453755f4ee921341127c8 /utils | |
parent | 03cbeb74a306d0da9a2701ce9a3be904f91cb62d (diff) | |
download | external_llvm-5f222be33b97130f9a858851ced893df2ee11586.zip external_llvm-5f222be33b97130f9a858851ced893df2ee11586.tar.gz external_llvm-5f222be33b97130f9a858851ced893df2ee11586.tar.bz2 |
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')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h index 83c85b8..cee81e9 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!"); |