aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Panchenko <maks@fb.com>2024-04-16 17:58:47 -0700
committerGitHub <noreply@github.com>2024-04-16 17:58:47 -0700
commit0af8caeb2fa4d68fcabe6297383d1cdf1cae8b87 (patch)
tree7ebadea4491681bfe1abf484ac941a01b9f4ad48
parent52a4d8123c2a9157f2e543945f7b6148da3ecfdb (diff)
downloadllvm-0af8caeb2fa4d68fcabe6297383d1cdf1cae8b87.zip
llvm-0af8caeb2fa4d68fcabe6297383d1cdf1cae8b87.tar.gz
llvm-0af8caeb2fa4d68fcabe6297383d1cdf1cae8b87.tar.bz2
[BOLT][NFC] Remove another unused function (#89011)
RewriteInstance::isKSymtabSection() is deprecated.
-rw-r--r--bolt/include/bolt/Rewrite/RewriteInstance.h3
-rw-r--r--bolt/lib/Rewrite/RewriteInstance.cpp7
2 files changed, 0 insertions, 10 deletions
diff --git a/bolt/include/bolt/Rewrite/RewriteInstance.h b/bolt/include/bolt/Rewrite/RewriteInstance.h
index 7a261f6..af832b4 100644
--- a/bolt/include/bolt/Rewrite/RewriteInstance.h
+++ b/bolt/include/bolt/Rewrite/RewriteInstance.h
@@ -391,9 +391,6 @@ public:
/// 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 fd24772..4e0096c 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;
-}