aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-03 07:20:47 +0000
committerChris Lattner <sabre@nondot.org>2002-02-03 07:20:47 +0000
commit871b1939b52553a6bb1d51d326b0b1356de03353 (patch)
tree5a13f3de9b7b75114d809bd85a3a0f560b782688
parentf3aaadf48277acddc3f6fdc4cc8d18b13d313595 (diff)
* Trim #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1640 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetData.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 2bce5f40b9..52cb1b6e62 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 <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);
}
};