From e2e741ecddd672e08abd29f21d67521edb640e48 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 6 Jun 2013 13:06:17 +0000 Subject: Print symbol names in relocations when dumping COFF as YAML. llvm-svn: 183403 --- llvm/lib/Object/COFFYAML.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object') diff --git a/llvm/lib/Object/COFFYAML.cpp b/llvm/lib/Object/COFFYAML.cpp index e3c2a45977c..e549b4e9ea2 100644 --- a/llvm/lib/Object/COFFYAML.cpp +++ b/llvm/lib/Object/COFFYAML.cpp @@ -229,11 +229,12 @@ struct NType { } -void MappingTraits::mapping(IO &IO, COFF::relocation &Rel) { +void MappingTraits::mapping(IO &IO, + COFFYAML::Relocation &Rel) { MappingNormalization NT(IO, Rel.Type); IO.mapRequired("VirtualAddress", Rel.VirtualAddress); - IO.mapRequired("SymbolTableIndex", Rel.SymbolTableIndex); + IO.mapRequired("SymbolName", Rel.SymbolName); IO.mapRequired("Type", NT->Type); } -- cgit v1.2.3