diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-03 01:39:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-03 01:39:20 +0000 |
commit | 5f4ac848d94b0a92e19ac7f2b3d0284d7d323173 (patch) | |
tree | af81190be5b56edee3349ab035ca80c06e75b145 /include/llvm/Constants.h | |
parent | c0ff8c85dcc0bb3c58c15890b180dedaa726cb76 (diff) | |
download | llvm-5f4ac848d94b0a92e19ac7f2b3d0284d7d323173.tar.gz llvm-5f4ac848d94b0a92e19ac7f2b3d0284d7d323173.tar.bz2 llvm-5f4ac848d94b0a92e19ac7f2b3d0284d7d323173.tar.xz |
Now Bitcode reader bug is fixed. Reapply 80839.
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@80868 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) |