diff options
| author | Martin Storsjo <martin@martin.st> | 2019-01-07 20:55:33 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-01-07 20:55:33 +0000 |
| commit | 93a7137c0aca17d5d21392c985bf412deea53df9 (patch) | |
| tree | 87e6cbdef296bcebce9e9ecc73200bb789387498 /llvm/lib/ObjectYAML | |
| parent | e25db17104bc4d1cbc9f4aa0d073d33c74b34848 (diff) | |
| download | bcm5719-llvm-93a7137c0aca17d5d21392c985bf412deea53df9.tar.gz bcm5719-llvm-93a7137c0aca17d5d21392c985bf412deea53df9.zip | |
[ObjectYAML] [COFF] Support multiple symbols with the same name
Differential Revision: https://reviews.llvm.org/D56294
llvm-svn: 350566
Diffstat (limited to 'llvm/lib/ObjectYAML')
| -rw-r--r-- | llvm/lib/ObjectYAML/COFFYAML.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/COFFYAML.cpp b/llvm/lib/ObjectYAML/COFFYAML.cpp index 9351ef96beb..fdd94f4054e 100644 --- a/llvm/lib/ObjectYAML/COFFYAML.cpp +++ b/llvm/lib/ObjectYAML/COFFYAML.cpp @@ -407,7 +407,8 @@ struct NDLLCharacteristics { void MappingTraits<COFFYAML::Relocation>::mapping(IO &IO, COFFYAML::Relocation &Rel) { IO.mapRequired("VirtualAddress", Rel.VirtualAddress); - IO.mapRequired("SymbolName", Rel.SymbolName); + IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); + IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); if (H.Machine == COFF::IMAGE_FILE_MACHINE_I386) { |

