diff --git a/llvm/include/llvm/Object/ObjectFile.h b/llvm/include/llvm/Object/ObjectFile.h --- a/llvm/include/llvm/Object/ObjectFile.h +++ b/llvm/include/llvm/Object/ObjectFile.h @@ -46,6 +46,7 @@ using section_iterator = content_iterator; +typedef std::function SectionFilterPredicate; typedef std::function SectionFilterPredicate; /// This is a value type class that represents a single relocation in the list /// of relocations in the object file. diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h --- a/llvm/tools/llvm-objdump/llvm-objdump.h +++ b/llvm/tools/llvm-objdump/llvm-objdump.h @@ -70,7 +70,7 @@ /// Idx is an optional output parameter that keeps track of which section index /// this is. This may be different than the actual section number, as some /// sections may be filtered (e.g. symbol tables). -object::SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O, +object::SectionFilter ToolSectionFilter(const llvm::object::ObjectFile &O, uint64_t *Idx = nullptr); bool isRelocAddressLess(object::RelocationRef A, object::RelocationRef B);