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 | 97b7311e9f639dcd26c85ade79b54f2ccf9695cf (patch) | |
tree | 24cb05b3e6997db0f3607f5b39f319830dbfe713 /lib/CodeGen/TargetMachine/TargetData.cpp | |
parent | e8fdde179d610ad4452b0cbed67d17b78ace4e38 (diff) |
annotations are now const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetMachine/TargetData.cpp')
-rw-r--r-- | lib/CodeGen/TargetMachine/TargetData.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetMachine/TargetData.cpp b/lib/CodeGen/TargetMachine/TargetData.cpp index 0d23206d99..a3db47fc10 100644 --- a/lib/CodeGen/TargetMachine/TargetData.cpp +++ b/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(); |