diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-01-23 10:52:38 +0000 | 
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-01-23 10:52:38 +0000 | 
| commit | fd383e7e22d091e9bd581d96588a2f0830f77980 (patch) | |
| tree | cc86cf0aa0e94baee370e05578f333334cf3dff8 | |
| parent | 4e0c400a475b1b3ff598c5b7a0ca75d3ee33641a (diff) | |
| download | bcm5719-llvm-fd383e7e22d091e9bd581d96588a2f0830f77980.tar.gz bcm5719-llvm-fd383e7e22d091e9bd581d96588a2f0830f77980.zip | |
[llvm-objdump] - Move variable. NFC.
It was too far from the place where it is used.
llvm-svn: 351942
| -rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index fe873c00913..7d9f6161db1 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -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;            } +        }        }      }    } | 

