mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Revert "Add a funciton to get the segment name of a section."
This reverts commit r170095 since it appears to be breaking the bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,7 +28,6 @@
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Object/Archive.h"
|
||||
#include "llvm/Object/COFF.h"
|
||||
#include "llvm/Object/MachO.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
@ -73,9 +72,9 @@ static cl::opt<bool>
|
||||
SymbolTable("t", cl::desc("Display the symbol table"));
|
||||
|
||||
static cl::opt<bool>
|
||||
MachOOpt("macho", cl::desc("Use MachO specific object file parser"));
|
||||
MachO("macho", cl::desc("Use MachO specific object file parser"));
|
||||
static cl::alias
|
||||
MachOm("m", cl::desc("Alias for --macho"), cl::aliasopt(MachOOpt));
|
||||
MachOm("m", cl::desc("Alias for --macho"), cl::aliasopt(MachO));
|
||||
|
||||
cl::opt<std::string>
|
||||
llvm::TripleName("triple", cl::desc("Target triple to disassemble for, "
|
||||
@ -568,13 +567,6 @@ static void PrintSymbolTable(const ObjectFile *o) {
|
||||
else if (Section == o->end_sections())
|
||||
outs() << "*UND*";
|
||||
else {
|
||||
if (const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(o)) {
|
||||
StringRef SegmentName;
|
||||
DataRefImpl DR = Section->getRawDataRefImpl();
|
||||
if (error(MachO->getSectionFinalSegmentName(DR, SegmentName)))
|
||||
SegmentName = "";
|
||||
outs() << SegmentName << ",";
|
||||
}
|
||||
StringRef SectionName;
|
||||
if (error(Section->getName(SectionName)))
|
||||
SectionName = "";
|
||||
@ -648,7 +640,7 @@ static void DumpInput(StringRef file) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (MachOOpt && Disassemble) {
|
||||
if (MachO && Disassemble) {
|
||||
DisassembleInputMachO(file);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user