From bf809cd165f4ea1b8ef6aabc8e41e29747b4d2c7 Mon Sep 17 00:00:00 2001 From: Esme-Yi Date: Wed, 26 May 2021 08:47:53 +0000 Subject: [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 --- llvm/lib/Object/ObjectFile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/Object/ObjectFile.cpp') 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 ObjectFile::getRelocatedSection(DataRefImpl Sec) const { -- cgit v1.1