Skip to content

Commit

Permalink
tools: remove duplication of coff_aux_file
Browse files Browse the repository at this point in the history
Now that COFF::coff_aux_file is defined, use that rather than redefining the
type locally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206140 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
compnerd committed Apr 13, 2014
1 parent 1a16898 commit a94a682
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/llvm-readobj/COFFDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,6 @@ static const EnumEntry<unsigned> UnwindOpInfo[] = {
{ "R15", 15 }
};

// Some additional COFF structures not defined by llvm::object.
namespace {
struct coff_aux_file_record {
char FileName[18];
};
} // namespace

static uint64_t getOffsetOfLSDA(const Win64EH::UnwindInfo& UI) {
return static_cast<const char*>(UI.getLanguageSpecificData())
- reinterpret_cast<const char*>(&UI);
Expand Down Expand Up @@ -979,13 +972,12 @@ void COFFDumper::printSymbol(const SymbolRef &Sym) {
W.printBinary("Unused", makeArrayRef(Aux->Unused));

} else if (Symbol->isFileRecord()) {
const coff_aux_file_record *Aux;
const coff_aux_file *Aux;
if (error(getSymbolAuxData(Obj, Symbol + I, Aux)))
break;

DictScope AS(W, "AuxFileRecord");
W.printString("FileName", StringRef(Aux->FileName));

} else if (Symbol->isSectionDefinition()) {
const coff_aux_section_definition *Aux;
if (error(getSymbolAuxData(Obj, Symbol + I, Aux)))
Expand Down

0 comments on commit a94a682

Please sign in to comment.