summaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-29 18:54:23 +0000
committerChris Lattner <sabre@nondot.org>2004-02-29 18:54:23 +0000
commit9548f20ad560d5c094cdfb5d531d84140e5b6a43 (patch)
tree513b469b77769f9272fa1d325934b2498a820358 /include/llvm/Instruction.h
parent96c9b8b49691c715ccc848ea3ef941f6e9b7e8f2 (diff)
downloadexternal_llvm-9548f20ad560d5c094cdfb5d531d84140e5b6a43.zip
external_llvm-9548f20ad560d5c094cdfb5d531d84140e5b6a43.tar.gz
external_llvm-9548f20ad560d5c094cdfb5d531d84140e5b6a43.tar.bz2
Ugh, the old sparc backend attaches MachineCodeForInstruction annotations on
LLVM instructions. Because it contains an explicit cast, we didn't catch it. I guess instruction's will be annotable for the duration of the sparcv9's existence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 9de8747..035687e 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -16,6 +16,7 @@
#define LLVM_INSTRUCTION_H
#include "llvm/User.h"
+#include "Support/Annotation.h"
namespace llvm {
@@ -25,7 +26,7 @@ template<typename SC> struct ilist_traits;
template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
typename SubClass> class SymbolTableListTraits;
-class Instruction : public User {
+class Instruction : public User, public Annotable {
BasicBlock *Parent;
Instruction *Prev, *Next; // Next and Prev links for our intrusive linked list