mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
e8fdde179d
commit
97b7311e9f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user