aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/TargetData.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 16:28:25 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 16:28:25 +0000
commit5f30d241752587d98a8de3c8807c35e84136d95c (patch)
tree3823ffe3a8ae1e323fd9c1d1ac7f6f7b74c06ea3 /include/llvm/CodeGen/TargetData.h
parent368216420a222c6cd2fd45980e59119122ae280b (diff)
Annotations are now passed around as const objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/TargetData.h')
-rw-r--r--include/llvm/CodeGen/TargetData.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/TargetData.h b/include/llvm/CodeGen/TargetData.h
index 5c44a8adcb..cf449702b7 100644
--- a/include/llvm/CodeGen/TargetData.h
+++ b/include/llvm/CodeGen/TargetData.h
@@ -30,7 +30,7 @@ class TargetData {
unsigned char PointerAlignment; // Defaults to 8 bytes
AnnotationID AID; // AID for structure layout annotation
- static Annotation *TypeAnFactory(AnnotationID, Annotable *, void *);
+ static Annotation *TypeAnFactory(AnnotationID, const Annotable *, void *);
public:
TargetData(const string &TargetName, unsigned char PtrSize = 8,
unsigned char PtrAl = 8, unsigned char DoubleAl = 8,
@@ -65,7 +65,7 @@ public:
const vector<ConstPoolVal*> &Indices) const;
inline const StructLayout *getStructLayout(const StructType *Ty) const {
- return (const StructLayout*)((Value*)Ty)->getOrCreateAnnotation(AID);
+ return (const StructLayout*)((const Type*)Ty)->getOrCreateAnnotation(AID);
}
};