diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-07 16:40:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-07 16:40:04 +0000 |
| commit | 4eb6d9fd8581184379190837e75fdc2b4eea6b7c (patch) | |
| tree | b184c84477bce51c841b6191a5c084dcbea7dbdb /llvm/lib | |
| parent | b97ef9f4cf07d2092b7ca0fe5860d375fb29954a (diff) | |
| download | bcm5719-llvm-4eb6d9fd8581184379190837e75fdc2b4eea6b7c.tar.gz bcm5719-llvm-4eb6d9fd8581184379190837e75fdc2b4eea6b7c.zip | |
annotations are now const
llvm-svn: 450
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/TargetMachine/TargetData.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetMachine/TargetData.cpp b/llvm/lib/CodeGen/TargetMachine/TargetData.cpp index 0d23206d991..a3db47fc10e 100644 --- a/llvm/lib/CodeGen/TargetMachine/TargetData.cpp +++ b/llvm/lib/CodeGen/TargetMachine/TargetData.cpp @@ -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(); |

