IR: Introduce GenericDwarfNode
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 00:01:43 +0000 (00:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 00:01:43 +0000 (00:01 +0000)
commitfed199a75859a176a22e4135980a1a497b64e628
tree28f0d754ef17b6a0eaa6db860f2865b37b25a800
parentd5ac1ab65d4c305cfbf107f2dedfdd94474ffa37
IR: Introduce GenericDwarfNode

As part of PR22235, introduce `DwarfNode` and `GenericDwarfNode`.  The
former is a metadata node with a DWARF tag.  The latter matches our
current (generic) schema of a header with string (and stringified
integer) data and an arbitrary number of operands.

This doesn't move it into place yet; that change will require a large
number of testcase updates.

llvm-svn: 226529
llvm/include/llvm/IR/Metadata.def
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/LLVMContextImpl.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Metadata.cpp
llvm/lib/Transforms/Utils/ValueMapper.cpp
llvm/unittests/IR/MetadataTest.cpp