mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
[llvm-objdump] - Move variable. NFC.
It was too far from the place where it is used. llvm-svn: 351942
This commit is contained in:
parent
8cca3e4394
commit
bd84239c39
@ -890,9 +890,6 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
|
||||
const MCInstrAnalysis *MIA, MCInstPrinter *IP,
|
||||
const MCSubtargetInfo *STI, PrettyPrinter &PIP,
|
||||
SourcePrinter &SP, bool InlineRelocs) {
|
||||
StringRef Fmt = Obj->getBytesInAddress() > 4 ? "\t\t%016" PRIx64 ": "
|
||||
: "\t\t\t%08" PRIx64 ": ";
|
||||
|
||||
std::map<SectionRef, std::vector<RelocationRef>> RelocMap;
|
||||
if (InlineRelocs)
|
||||
RelocMap = getRelocsMap(*Obj);
|
||||
@ -1338,7 +1335,10 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
|
||||
outs() << "\n";
|
||||
|
||||
// Hexagon does this in pretty printer
|
||||
if (Obj->getArch() != Triple::hexagon)
|
||||
if (Obj->getArch() != Triple::hexagon) {
|
||||
StringRef Fmt = Obj->getBytesInAddress() > 4 ? "\t\t%016" PRIx64 ": "
|
||||
: "\t\t\t%08" PRIx64
|
||||
": ";
|
||||
// Print relocation for instruction.
|
||||
while (RelCur != RelEnd) {
|
||||
uint64_t Addr = RelCur->getOffset();
|
||||
@ -1360,6 +1360,7 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
|
||||
<< Val << "\n";
|
||||
++RelCur;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user