Skip to content

Commit 0af8cae

Browse files
authored
[BOLT][NFC] Remove another unused function (#89011)
RewriteInstance::isKSymtabSection() is deprecated.
1 parent 52a4d81 commit 0af8cae

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

bolt/include/bolt/Rewrite/RewriteInstance.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,6 @@ class RewriteInstance {
391391
/// Return true if the section holds debug information.
392392
static bool isDebugSection(StringRef SectionName);
393393

394-
/// Return true if the section holds linux kernel symbol information.
395-
static bool isKSymtabSection(StringRef SectionName);
396-
397394
/// Adds Debug section to overwrite.
398395
static void addToDebugSectionsToOverwrite(const char *Section) {
399396
DebugSectionsToOverwrite.emplace_back(Section);

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5767,10 +5767,3 @@ bool RewriteInstance::isDebugSection(StringRef SectionName) {
57675767

57685768
return false;
57695769
}
5770-
5771-
bool RewriteInstance::isKSymtabSection(StringRef SectionName) {
5772-
if (SectionName.starts_with("__ksymtab"))
5773-
return true;
5774-
5775-
return false;
5776-
}

0 commit comments

Comments
 (0)