summaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-15 19:56:28 +0000
committerChris Lattner <sabre@nondot.org>2009-11-15 19:56:28 +0000
commit5415127330d3b3ccb91cc6fef196f066563740a9 (patch)
tree3926daf8d9f32e1832731d44c2715bc4cc771e20 /include/llvm/Function.h
parent6f0c67d4ffbc9c47153cab94985a22699b699729 (diff)
downloadllvm-5415127330d3b3ccb91cc6fef196f066563740a9.tar.gz
llvm-5415127330d3b3ccb91cc6fef196f066563740a9.tar.bz2
llvm-5415127330d3b3ccb91cc6fef196f066563740a9.tar.xz
mark getIntrinsicID() 'readonly'. This allows various classof methods
(like DbgDeclareInst's) to shrink substantially. It sucks that we have to pull Compiler.h into such a public header, but at least Compiler.h doesn't pull anything else in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 088c99952e..64be545ba4 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -23,6 +23,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/Argument.h"
#include "llvm/Attributes.h"
+#include "llvm/Support/Compiler.h"
namespace llvm {
@@ -148,7 +149,7 @@ public:
/// The particular intrinsic functions which correspond to this value are
/// defined in llvm/Intrinsics.h.
///
- unsigned getIntrinsicID() const;
+ unsigned getIntrinsicID() const ATTRIBUTE_READONLY;
bool isIntrinsic() const { return getIntrinsicID() != 0; }
/// getCallingConv()/setCallingConv(CC) - These method get and set the