[dsymutil] Have the YAML deserialization rewrite the object address of symbols.
authorFrederic Riss <friss@apple.com>
Fri, 5 Jun 2015 21:12:07 +0000 (21:12 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 5 Jun 2015 21:12:07 +0000 (21:12 +0000)
commitdfbf8971ca4a14c0e6e7671ff004ad3e13cb305b
treea90532dcaad1918c5666bc0e15841cbffd920efc
parent0f58c38ebd4aebe835edf444916c8f7cfe8e2a79
[dsymutil] Have the YAML deserialization rewrite the object address of symbols.

The main use of the YAML debug map format is for testing inside LLVM. If we have IR
files in the tests used to generate object files, then we obviously don't know the
addresses of the symbols inside the object files beforehand.

This change lets the YAML import lookup the addresses in the object files and rewrite
them. This will allow to have test that really don't need any binary input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239189 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/yaml-object-address-rewrite.test [new file with mode: 0644]
tools/dsymutil/DebugMap.cpp