summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Type.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-12-28 16:17:26 +0000
committerCraig Topper <craig.topper@gmail.com>2013-12-28 16:17:26 +0000
commit89aeb02b71bc227c3c866bd6afde1d6583d9d1f5 (patch)
tree6d42c0b531b35e57e1f5fc0c94455eb8ec023add /include/llvm/IR/Type.h
parentd8e67feaf255856fef5c6f77f5103837fa2e4829 (diff)
downloadllvm-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 'include/llvm/IR/Type.h')
-rw-r--r--include/llvm/IR/Type.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/IR/Type.h b/include/llvm/IR/Type.h
index 5773b6717c..9b981e0d32 100644
--- a/include/llvm/IR/Type.h
+++ b/include/llvm/IR/Type.h
@@ -290,12 +290,12 @@ public:
/// instance of the type is stored to memory. The DataLayout class provides
/// additional query functions to provide this information.
///
- unsigned getPrimitiveSizeInBits() const;
+ unsigned getPrimitiveSizeInBits() const LLVM_READONLY;
/// getScalarSizeInBits - If this is a vector type, return the
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
/// getPrimitiveSizeInBits value for this type.
- unsigned getScalarSizeInBits();
+ unsigned getScalarSizeInBits() const LLVM_READONLY;
/// getFPMantissaWidth - Return the width of the mantissa of this type. This
/// is only valid on floating point types. If the FP type does not
@@ -304,8 +304,8 @@ public:
/// getScalarType - If this is a vector type, return the element type,
/// otherwise return 'this'.
- const Type *getScalarType() const;
- Type *getScalarType();
+ const Type *getScalarType() const LLVM_READONLY;
+ Type *getScalarType() LLVM_READONLY;
//===--------------------------------------------------------------------===//
// Type Iteration support.