diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-03 07:20:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-03 07:20:47 +0000 |
commit | 7d01ff38e9074bb91a954ef9994e57de3750abaa (patch) | |
tree | b52321cfd44f29728527555f4059b1fe0420f34e | |
parent | 13002dd26b6649a6f72d38b9ab9b2cf53d1031f3 (diff) | |
download | bcm5719-llvm-7d01ff38e9074bb91a954ef9994e57de3750abaa.tar.gz bcm5719-llvm-7d01ff38e9074bb91a954ef9994e57de3750abaa.zip |
* Trim #includes
llvm-svn: 1640
-rw-r--r-- | llvm/include/llvm/Target/TargetData.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/include/llvm/Target/TargetData.h b/llvm/include/llvm/Target/TargetData.h index 2bce5f40b97..52cb1b6e626 100644 --- a/llvm/include/llvm/Target/TargetData.h +++ b/llvm/include/llvm/Target/TargetData.h @@ -13,8 +13,10 @@ #ifndef LLVM_TARGET_TARGETDATA_H #define LLVM_TARGET_TARGETDATA_H -#include "llvm/Type.h" - +#include "llvm/Annotation.h" +#include <vector> +class Value; +class Type; class StructType; class StructLayout; @@ -64,7 +66,8 @@ public: const std::vector<Value*> &Indices) const; inline const StructLayout *getStructLayout(const StructType *Ty) const { - return (const StructLayout*)((const Type*)Ty)->getOrCreateAnnotation(AID); + return (const StructLayout*) + ((const Annotable*)Ty)->getOrCreateAnnotation(AID); } }; |