annotations are now const

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@450 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-07 16:40:04 +00:00
parent e8fdde179d
commit 97b7311e9f

View File

@ -57,7 +57,8 @@ StructLayout::StructLayout(const StructType *ST, const TargetData &TD)
}
}
Annotation *TargetData::TypeAnFactory(AnnotationID AID, Annotable *T, void *D) {
Annotation *TargetData::TypeAnFactory(AnnotationID AID, const Annotable *T,
void *D) {
const TargetData &TD = *(const TargetData*)D;
assert(AID == TD.AID && "Target data annotation ID mismatch!");
const Type *Ty = ((const Value *)T)->castTypeAsserting();