diff options
author | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-04-02 10:00:18 +0200 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-04-02 10:56:00 +0200 |
commit | 29d253c4c6879bfe57040c8c59b0d9d84f6e5e2f (patch) | |
tree | ff0ab1c5fa27b23a7bce006efa6078ba5f41c8d1 /llvm/lib/Object/ObjectFile.cpp | |
parent | deb902252ac8d07b3f4419de4ff23dae444aaa6e (diff) | |
download | llvm-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.cpp | 4 |
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)); |