aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@syrmia.com>2020-04-02 10:00:18 +0200
committerDjordje Todorovic <djordje.todorovic@syrmia.com>2020-04-02 10:56:00 +0200
commit29d253c4c6879bfe57040c8c59b0d9d84f6e5e2f (patch)
treeff0ab1c5fa27b23a7bce006efa6078ba5f41c8d1 /llvm/lib/Object/ObjectFile.cpp
parentdeb902252ac8d07b3f4419de4ff23dae444aaa6e (diff)
downloadllvm-29d253c4c6879bfe57040c8c59b0d9d84f6e5e2f.zip
llvm-29d253c4c6879bfe57040c8c59b0d9d84f6e5e2f.tar.gz
llvm-29d253c4c6879bfe57040c8c59b0d9d84f6e5e2f.tar.bz2
[Object] Add the method for checking if a section is a debug section
Different file formats have different naming style for the debug sections. The method is implemented for ELF, COFF and Mach-O formats. Differential Revision: https://reviews.llvm.org/D76276
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 7879e2e..1453f9d 100644
--- a/llvm/lib/Object/ObjectFile.cpp
+++ b/llvm/lib/Object/ObjectFile.cpp
@@ -91,6 +91,10 @@ bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const {
return isSectionData(Sec);
}
+bool ObjectFile::isDebugSection(StringRef SectionName) const {
+ return false;
+}
+
Expected<section_iterator>
ObjectFile::getRelocatedSection(DataRefImpl Sec) const {
return section_iterator(SectionRef(Sec, this));