[llvm] [llvm-objdump] Add inlined function display support (PR #142246)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 01:09:36 PDT 2025
================
@@ -23,6 +23,62 @@
namespace llvm {
namespace objdump {
+bool InlinedFunction::liveAtAddress(object::SectionedAddress Addr) {
+ if (!Range.valid())
+ return false;
+
+ return Range.LowPC <= Addr.Address && Range.HighPC > Addr.Address;
+}
+
+void InlinedFunction::print(raw_ostream &OS, const MCRegisterInfo &MRI) const {
+ const char *MangledCallerName =
+ FuncDie.getName(llvm::DINameKind::LinkageName);
+ if (!MangledCallerName)
+ return;
+ std::string CallerName = llvm::demangle(MangledCallerName);
----------------
jh7370 wrote:
Looks like there's no testing for the new check?
https://github.com/llvm/llvm-project/pull/142246
More information about the llvm-commits
mailing list