aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object/COFFYAML.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-06 13:06:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-06 13:06:17 +0000
commite3a0e7f29dde261ca00835e763e26de41a8684f6 (patch)
treeb3d0775b1c7e332bd720f4d991c9b9869d7b16d8 /lib/Object/COFFYAML.cpp
parent2ed7659b88db1b0f3e5e6e6d9920c1d149159986 (diff)
downloadexternal_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.zip
external_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.tar.gz
external_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.tar.bz2
Print symbol names in relocations when dumping COFF as YAML.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/COFFYAML.cpp')
-rw-r--r--lib/Object/COFFYAML.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Object/COFFYAML.cpp b/lib/Object/COFFYAML.cpp
index e3c2a45..e549b4e 100644
--- a/lib/Object/COFFYAML.cpp
+++ b/lib/Object/COFFYAML.cpp
@@ -229,11 +229,12 @@ struct NType {
}
-void MappingTraits<COFF::relocation>::mapping(IO &IO, COFF::relocation &Rel) {
+void MappingTraits<COFFYAML::Relocation>::mapping(IO &IO,
+ COFFYAML::Relocation &Rel) {
MappingNormalization<NType, uint16_t> NT(IO, Rel.Type);
IO.mapRequired("VirtualAddress", Rel.VirtualAddress);
- IO.mapRequired("SymbolTableIndex", Rel.SymbolTableIndex);
+ IO.mapRequired("SymbolName", Rel.SymbolName);
IO.mapRequired("Type", NT->Type);
}