aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
-}