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 | 8c4ac147ecc96b7557ac755d154de8039f07a39d (patch) | |
| tree | 640638838a63e6e233a94701d8be672194f87d53 /llvm/lib/IR | |
| parent | cf396cf82c6a8cd95c252b3c759b936833384fb7 (diff) | |
| download | bcm5719-llvm-8c4ac147ecc96b7557ac755d154de8039f07a39d.tar.gz bcm5719-llvm-8c4ac147ecc96b7557ac755d154de8039f07a39d.zip | |
Mark some Type and EVT methods as LLVM_READONLY.
llvm-svn: 198115
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Type.cpp b/llvm/lib/IR/Type.cpp index 86f2d89dd33..b02509fcf35 100644 --- a/llvm/lib/IR/Type.cpp +++ b/llvm/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(); } |

