[llvm-branch-commits] [llvm] [BOLT] Eliminate dead jump tables (PR #91666)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 9 19:10:16 PDT 2024
https://github.com/aaupov updated https://github.com/llvm/llvm-project/pull/91666
>From 0166eb8ee85e2cdcb472502206ea4c13f49a6724 Mon Sep 17 00:00:00 2001
From: Amir Ayupov <aaupov at fb.com>
Date: Thu, 9 May 2024 16:31:17 -0700
Subject: [PATCH] deregisterJumpTable
Created using spr 1.3.4
---
bolt/include/bolt/Core/BinaryContext.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bolt/include/bolt/Core/BinaryContext.h b/bolt/include/bolt/Core/BinaryContext.h
index 4a59a581dfedb..f8bf29c674b54 100644
--- a/bolt/include/bolt/Core/BinaryContext.h
+++ b/bolt/include/bolt/Core/BinaryContext.h
@@ -430,6 +430,11 @@ class BinaryContext {
return nullptr;
}
+ /// Deregister JumpTable registered at a given \p Address.
+ bool deregisterJumpTable(uint64_t Address) {
+ return JumpTables.erase(Address);
+ }
+
unsigned getDWARFEncodingSize(unsigned Encoding) {
if (Encoding == dwarf::DW_EH_PE_omit)
return 0;
More information about the llvm-branch-commits
mailing list