diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-02 21:22:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-02 21:22:09 +0000 |
commit | d9489cbb0cf933da9e2154a5336533d6254a5c30 (patch) | |
tree | 2095f4e178aa362d18c25b07a42f5209bead3a9d /include/llvm/Constants.h | |
parent | 69d1c1aebf009e58157e233cd7f2338e654e8d05 (diff) | |
download | llvm-d9489cbb0cf933da9e2154a5336533d6254a5c30.tar.gz llvm-d9489cbb0cf933da9e2154a5336533d6254a5c30.tar.bz2 llvm-d9489cbb0cf933da9e2154a5336533d6254a5c30.tar.xz |
Use CallbackVH, instead of WeakVH, to hold MDNode elements.
Use FoldingSetNode to unique MDNodes in a context.
Use CallbackVH hooks to update context's MDNodeSet appropriately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index fdcc53bc79..da6fe96a77 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -38,7 +38,7 @@ class VectorType; template<class ConstantClass, class TypeClass, class ValType> struct ConstantCreator; template<class ConstantClass, class TypeClass> -struct ConvertConstant; +struct ConvertConstantType; //===----------------------------------------------------------------------===// /// This is the shared class of boolean and integer constants. This class @@ -559,7 +559,7 @@ public: class ConstantExpr : public Constant { friend struct ConstantCreator<ConstantExpr,Type, std::pair<unsigned, std::vector<Constant*> > >; - friend struct ConvertConstant<ConstantExpr, Type>; + friend struct ConvertConstantType<ConstantExpr, Type>; protected: ConstantExpr(const Type *ty, unsigned Opcode, Use *Ops, unsigned NumOps) |