OSDN Git Service

IR: Allow multiple global metadata attachments with the same type.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 1 Jun 2016 01:17:57 +0000 (01:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 1 Jun 2016 01:17:57 +0000 (01:17 +0000)
commitd8d85ac3c91f057a694a9f0630c565102e60bd2d
tree47ab2ac5b008d643b804f10fc7a86758192fe215
parented2188ea1797e342fa8f4fbc23f2851ab8e4dad0
IR: Allow multiple global metadata attachments with the same type.

This will be necessary to allow the global merge pass to attach
multiple debug info metadata nodes to global variables once we reverse
the edge from DIGlobalVariable to GlobalVariable.

Differential Revision: http://reviews.llvm.org/D20414

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271358 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/GlobalObject.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp
lib/IR/Verifier.cpp
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/ValueMapper.cpp
test/Assembler/metadata.ll
test/Verifier/metadata-function-dbg.ll
unittests/IR/MetadataTest.cpp