[llvm] [BOLT][NFC] Remove another unused function (PR #89011)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 17:53:42 PDT 2024
https://github.com/maksfb created https://github.com/llvm/llvm-project/pull/89011
RewriteInstance::isKSymtabSection() is deprecated.
>From bdb27760ec469adbd22fb4c4bcf451dc3696e5ba Mon Sep 17 00:00:00 2001
From: Maksim Panchenko <maks at fb.com>
Date: Tue, 16 Apr 2024 17:52:05 -0700
Subject: [PATCH] [BOLT][NFC] Remove another unused function
RewriteInstance::isKSymtabSection() is deprecated.
---
bolt/include/bolt/Rewrite/RewriteInstance.h | 3 ---
bolt/lib/Rewrite/RewriteInstance.cpp | 7 -------
2 files changed, 10 deletions(-)
diff --git a/bolt/include/bolt/Rewrite/RewriteInstance.h b/bolt/include/bolt/Rewrite/RewriteInstance.h
index 826677cd63b22b..1e320d3ce657c6 100644
--- a/bolt/include/bolt/Rewrite/RewriteInstance.h
+++ b/bolt/include/bolt/Rewrite/RewriteInstance.h
@@ -398,9 +398,6 @@ class RewriteInstance {
/// Return true if the section holds debug information.
static bool isDebugSection(StringRef SectionName);
- /// Return true if the section holds linux kernel symbol information.
- static bool isKSymtabSection(StringRef SectionName);
-
/// Adds Debug section to overwrite.
static void addToDebugSectionsToOverwrite(const char *Section) {
DebugSectionsToOverwrite.emplace_back(Section);
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index fd2477231142e3..4e0096cf988aed 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -5767,10 +5767,3 @@ bool RewriteInstance::isDebugSection(StringRef SectionName) {
return false;
}
-
-bool RewriteInstance::isKSymtabSection(StringRef SectionName) {
- if (SectionName.starts_with("__ksymtab"))
- return true;
-
- return false;
-}
More information about the llvm-commits
mailing list