diff options
author | Esme-Yi <esme.yi@ibm.com> | 2021-05-26 08:47:53 +0000 |
---|---|---|
committer | Esme-Yi <esme.yi@ibm.com> | 2021-05-26 08:47:53 +0000 |
commit | bf809cd165f4ea1b8ef6aabc8e41e29747b4d2c7 (patch) | |
tree | 01c0924d6303cfa730baa0d5bbf89560e0dfdfbc /llvm/lib/Object/ObjectFile.cpp | |
parent | 2cf0e52b8548716d8534470db1ce4bbb3571eea9 (diff) | |
download | llvm-bf809cd165f4ea1b8ef6aabc8e41e29747b4d2c7.zip llvm-bf809cd165f4ea1b8ef6aabc8e41e29747b4d2c7.tar.gz llvm-bf809cd165f4ea1b8ef6aabc8e41e29747b4d2c7.tar.bz2 |
[NFC][object] Change the input parameter of the method isDebugSection.
Summary: This is a NFC patch to change the input parameter of the method SectionRef::isDebugSection(), by replacing the StringRef SectionName with DataRefImpl Sec. This allows us to determine if a section is debug type in more ways than just by section name.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D102601
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ObjectFile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index cf09a66..7b17c8e 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -94,9 +94,7 @@ bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const { return isSectionData(Sec); } -bool ObjectFile::isDebugSection(StringRef SectionName) const { - return false; -} +bool ObjectFile::isDebugSection(DataRefImpl Sec) const { return false; } Expected<section_iterator> ObjectFile::getRelocatedSection(DataRefImpl Sec) const { |