[llvm-branch-commits] [llvm] [SHT_LLVM_FUNC_MAP][llvm-readobj]Introduce function address map section and emit dynamic instruction count(readobj part) (PR #124333)
Lei Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Feb 12 22:03:35 PST 2025
https://github.com/wlei-llvm updated https://github.com/llvm/llvm-project/pull/124333
>From 0f1f43a5f19d4055c1896a70e050965b4d309790 Mon Sep 17 00:00:00 2001
From: wlei <wlei at fb.com>
Date: Wed, 12 Feb 2025 22:03:21 -0800
Subject: [PATCH] remove irrelevant code
Created using spr 1.3.6-beta.1
---
llvm/tools/llvm-readobj/ELFDumper.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp
index 5f8c4613dd79f..fcd9842fd1cac 100644
--- a/llvm/tools/llvm-readobj/ELFDumper.cpp
+++ b/llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -7961,10 +7961,6 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printFuncMaps() {
continue;
}
for (const auto &AM : *FuncMapOrErr) {
- // Do not print dead entry where the functon address is zero.
- if (!AM.getFunctionAddress())
- continue;
-
DictScope D(W, "Function");
W.printHex("At", AM.getFunctionAddress());
SmallVector<uint32_t> FuncSymIndex =
More information about the llvm-branch-commits
mailing list