From a94a6829c145658c8afb717285206aea81a83c5f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 13 Apr 2014 22:54:15 +0000 Subject: [PATCH] tools: remove duplication of coff_aux_file 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 --- tools/llvm-readobj/COFFDumper.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp index cd40da7d6cc..69be82ec3e7 100644 --- a/tools/llvm-readobj/COFFDumper.cpp +++ b/tools/llvm-readobj/COFFDumper.cpp @@ -428,13 +428,6 @@ static const EnumEntry 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(UI.getLanguageSpecificData()) - reinterpret_cast(&UI); @@ -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)))