diff options
-rw-r--r-- | include/llvm/Function.h | 3 | ||||
-rw-r--r-- | include/llvm/Value.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 4dd791ec21..e77ddfaccd 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -21,6 +21,7 @@ #include "llvm/GlobalValue.h" #include "llvm/BasicBlock.h" #include "llvm/Argument.h" +#include "Support/Annotation.h" namespace llvm { @@ -44,7 +45,7 @@ template<> struct ilist_traits<Argument> static iplist<Argument> &getList(Function *F); }; -class Function : public GlobalValue { +class Function : public GlobalValue, public Annotable { public: typedef iplist<Argument> ArgumentListType; typedef iplist<BasicBlock> BasicBlockListType; diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 319115375d..3a58a44da9 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -19,7 +19,6 @@ #include "llvm/AbstractTypeUser.h" #include "llvm/Use.h" -#include "Support/Annotation.h" #include "Support/Casting.h" #include <iostream> @@ -42,7 +41,7 @@ class SymbolTable; /// Value - The base class of all values computed by a program that may be used /// as operands to other values. /// -struct Value : public Annotable { // Values are annotable +struct Value { enum ValueTy { TypeVal, // This is an instance of Type ConstantVal, // This is an instance of Constant |