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. llvm-svn: 80868
Showing
- llvm/include/llvm/Constants.h 2 additions, 2 deletionsllvm/include/llvm/Constants.h
- llvm/include/llvm/Metadata.h 29 additions, 7 deletionsllvm/include/llvm/Metadata.h
- llvm/lib/VMCore/Constants.cpp 2 additions, 2 deletionsllvm/lib/VMCore/Constants.cpp
- llvm/lib/VMCore/ConstantsContext.h 12 additions, 19 deletionsllvm/lib/VMCore/ConstantsContext.h
- llvm/lib/VMCore/LLVMContext.cpp 5 additions, 4 deletionsllvm/lib/VMCore/LLVMContext.cpp
- llvm/lib/VMCore/LLVMContextImpl.h 4 additions, 2 deletionsllvm/lib/VMCore/LLVMContextImpl.h
- llvm/lib/VMCore/Metadata.cpp 90 additions, 8 deletionsllvm/lib/VMCore/Metadata.cpp
- llvm/unittests/VMCore/MetadataTest.cpp 1 addition, 1 deletionllvm/unittests/VMCore/MetadataTest.cpp
Loading
Please register or sign in to comment