summaryrefslogtreecommitdiffstats
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
commit79b8d467dafe95511fdd224882c961d32aa78f08 (patch)
tree7d68727e93f5663d118ea659b42d22d6e3cb4fcf
parent9a4653edfaf1e7439bcb4d6a173842eda290364c (diff)
downloadbcm5719-llvm-79b8d467dafe95511fdd224882c961d32aa78f08.tar.gz
bcm5719-llvm-79b8d467dafe95511fdd224882c961d32aa78f08.zip
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. llvm-svn: 11999
-rw-r--r--llvm/include/llvm/Instruction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h
index 9de8747361e..035687e4b8f 100644
--- a/llvm/include/llvm/Instruction.h
+++ b/llvm/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
OpenPOWER on IntegriCloud