mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Disassemble the start of sections even if there is no symbol there.
We already handled a section with no symbols, extend that to also handle a section with symbols that don't include the section start. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -809,11 +809,9 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
outs() << SegmentName << ",";
|
||||
outs() << name << ':';
|
||||
|
||||
// If the section has no symbols just insert a dummy one and disassemble
|
||||
// the whole section.
|
||||
if (Symbols.empty())
|
||||
Symbols.push_back(std::make_pair(0, name));
|
||||
|
||||
// If the section has no symbol at the start, just insert a dummy one.
|
||||
if (Symbols.empty() || Symbols[0].first != 0)
|
||||
Symbols.insert(Symbols.begin(), std::make_pair(0, name));
|
||||
|
||||
SmallString<40> Comments;
|
||||
raw_svector_ostream CommentStream(Comments);
|
||||
|
Reference in New Issue
Block a user