From 871b1939b52553a6bb1d51d326b0b1356de03353 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 Feb 2002 07:20:47 +0000 Subject: [PATCH] * Trim #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1640 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetData.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 2bce5f40b97..52cb1b6e626 100644 --- a/include/llvm/Target/TargetData.h +++ b/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 +class Value; +class Type; class StructType; class StructLayout; @@ -64,7 +66,8 @@ public: const std::vector &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); } }; -- 2.34.1