diff options
author | Frederic Riss <friss@apple.com> | 2016-01-31 04:29:22 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2016-01-31 04:29:22 +0000 |
commit | d8c33dc2f60becafd0460d4e24d211316f64e521 (patch) | |
tree | 982b172f5b71cc65765bb9849e09566c2e37c515 /llvm/tools/dsymutil/MachODebugMapParser.cpp | |
parent | f42e031c79678ab79e1e7c4c86c9edad764b046c (diff) | |
download | bcm5719-llvm-d8c33dc2f60becafd0460d4e24d211316f64e521.tar.gz bcm5719-llvm-d8c33dc2f60becafd0460d4e24d211316f64e521.zip |
[dsymutil] Allow debug map mappings with no object file address. NFC
This change just changes the data structure that ties symbol names,
object file address and linked binary addresses to accept mappings
with no object file address. Such symbol mappings are not fed into
the debug map yet, so this patch is NFC.
A subsequent patch will make use of this functionality for common
symbols.
llvm-svn: 259317
Diffstat (limited to 'llvm/tools/dsymutil/MachODebugMapParser.cpp')
-rw-r--r-- | llvm/tools/dsymutil/MachODebugMapParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp b/llvm/tools/dsymutil/MachODebugMapParser.cpp index 4412db25426..33845f40cba 100644 --- a/llvm/tools/dsymutil/MachODebugMapParser.cpp +++ b/llvm/tools/dsymutil/MachODebugMapParser.cpp @@ -391,7 +391,7 @@ void MachODebugMapParser::handleStabSymbolTableEntry(uint32_t StringIndex, Twine(Name)); if (!ObjectSymIt->getValue()) return; - if (!CurrentDebugMapObject->addSymbol(Name, *ObjectSymIt->getValue(), Value, + if (!CurrentDebugMapObject->addSymbol(Name, ObjectSymIt->getValue(), Value, Size)) return Warning(Twine("failed to insert symbol '") + Name + "' in the debug map."); |