diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-12-28 16:17:26 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-12-28 16:17:26 +0000 |
commit | 89aeb02b71bc227c3c866bd6afde1d6583d9d1f5 (patch) | |
tree | 6d42c0b531b35e57e1f5fc0c94455eb8ec023add /lib | |
parent | d8e67feaf255856fef5c6f77f5103837fa2e4829 (diff) | |
download | llvm-89aeb02b71bc227c3c866bd6afde1d6583d9d1f5.tar.gz llvm-89aeb02b71bc227c3c866bd6afde1d6583d9d1f5.tar.bz2 llvm-89aeb02b71bc227c3c866bd6afde1d6583d9d1f5.tar.xz |
Mark some Type and EVT methods as LLVM_READONLY.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IR/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp index 86f2d89dd3..b02509fcf3 100644 --- a/lib/IR/Type.cpp +++ b/lib/IR/Type.cpp @@ -132,7 +132,7 @@ unsigned Type::getPrimitiveSizeInBits() const { /// getScalarSizeInBits - If this is a vector type, return the /// getPrimitiveSizeInBits value for the element type. Otherwise return the /// getPrimitiveSizeInBits value for this type. -unsigned Type::getScalarSizeInBits() { +unsigned Type::getScalarSizeInBits() const { return getScalarType()->getPrimitiveSizeInBits(); } |