From 4b4fe385e49bd883fd183b5f21c1ea486c722e61 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 24 Jul 2022 17:03:44 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-17485-ga3e38b4a206b. --- lld/MachO/InputSection.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lld/MachO/InputSection.cpp') diff --git a/lld/MachO/InputSection.cpp b/lld/MachO/InputSection.cpp index df312525df61..76b11d9da4f8 100644 --- a/lld/MachO/InputSection.cpp +++ b/lld/MachO/InputSection.cpp @@ -345,6 +345,11 @@ bool macho::isEhFrameSection(const InputSection *isec) { isec->getSegName() == segment_names::text; } +bool macho::isGccExceptTabSection(const InputSection *isec) { + return isec->getName() == section_names::gccExceptTab && + isec->getSegName() == segment_names::text; +} + std::string lld::toString(const InputSection *isec) { return (toString(isec->getFile()) + ":(" + isec->getName() + ")").str(); } -- cgit v1.3