[dsymutil] Support cloning DIE reference attributes.
authorFrederic Riss <friss@apple.com>
Fri, 6 Mar 2015 23:22:53 +0000 (23:22 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 6 Mar 2015 23:22:53 +0000 (23:22 +0000)
commitfe78287585df806d7024804e4918428ae2642159
tree042dd51f6a193efaee71dabfdb4435b388cd471b
parent1edd6edd600e38c09f1a2b8247a3dd3ef1b9dc12
[dsymutil] Support cloning DIE reference attributes.

Reference attributes are mainly handled by just creating DIEEntry
attributes for them. There is a special case for DW_FORM_ref_addr
attributes though, because the DIEEntry code needs a DwarfDebug
code to emit them (and we don't have one as we do no CodeGen).
In that case, just use DIEInteger attributes with the right form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231531 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/X86/basic-linking-x86.test
test/tools/dsymutil/X86/basic-lto-linking-x86.test
tools/dsymutil/DwarfLinker.cpp