mark getIntrinsicID() 'readonly'. This allows various classof methods
authorChris Lattner <sabre@nondot.org>
Sun, 15 Nov 2009 19:56:28 +0000 (19:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Nov 2009 19:56:28 +0000 (19:56 +0000)
(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

include/llvm/Function.h

index 088c99952e9fb35f35cecbfa2327e7336de709d2..64be545ba4628123cb7755fe252ca395983d7dc0 100644 (file)
@@ -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