Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/tools/llvm-readobj/ELFDumper.cpp
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | private: | ||||
bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); | bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); | ||||
void printProgramHeaders(const ELFO *Obj); | void printProgramHeaders(const ELFO *Obj); | ||||
void printSectionMapping(const ELFO *Obj); | void printSectionMapping(const ELFO *Obj); | ||||
}; | }; | ||||
template <class ELFT> | template <class ELFT> | ||||
void DumpStyle<ELFT>::reportUniqueWarning(Error Err) const { | void DumpStyle<ELFT>::reportUniqueWarning(Error Err) const { | ||||
handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) { | handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) { | ||||
cantFail(WarningHandler(EI.message()), | llvm_cantFail(WarningHandler(EI.message()), | ||||
"WarningHandler should always return ErrorSuccess"); | "WarningHandler should always return ErrorSuccess"); | ||||
}); | }); | ||||
} | } | ||||
template <typename ELFT> class LLVMStyle : public DumpStyle<ELFT> { | template <typename ELFT> class LLVMStyle : public DumpStyle<ELFT> { | ||||
public: | public: | ||||
TYPEDEF_ELF_TYPES(ELFT) | TYPEDEF_ELF_TYPES(ELFT) | ||||
▲ Show 20 Lines • Show All 5,613 Lines • Show Last 20 Lines |