[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 17 10:30:59 PDT 2024
================
@@ -363,6 +363,14 @@ class Language : public PluginInterface {
return false;
}
+ /// Returns a boolean indicating whether two symbol contexts correspond to
+ /// the same function. If the plugin has no opinion, it should return nullopt.
+ virtual std::optional<bool>
+ AreEquivalentFunctions(const SymbolContext &sc1,
----------------
jimingham wrote:
It would be nice to somehow indicate the comparison w.r.t. which these functions/contexts are equivalent. "Equivalent" makes it sound like maybe I could use one in place of the other generally (like maybe I can call either one of them???) `AreEqualForFrameComparison` is a little verbose, but tells you what statement we are actually making.
https://github.com/llvm/llvm-project/pull/112720
More information about the lldb-commits
mailing list