[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Fetch constant value from variable defintion if available (PR #71004)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 2 09:24:07 PDT 2023
================
@@ -373,6 +373,17 @@ class DWARFASTParserClang : public lldb_private::plugin::dwarf::DWARFASTParser {
lldb_private::CompilerType &class_clang_type,
const lldb::AccessType default_accesibility,
lldb_private::ClangASTImporter::LayoutInfo &layout_info);
+
+ /// Tries to find the definition DW_TAG_variable DIE of the the specified
+ /// DW_TAG_member 'die'. If such definition exists, returns the
+ /// DW_AT_const_value of that definition if available. Returns std::nullopt
+ /// otherwise.
+ ///
+ /// In newer versions of clang, DW_AT_const_value's are not attached to the
----------------
adrian-prantl wrote:
DW_AT_const_value attributes
https://github.com/llvm/llvm-project/pull/71004
More information about the lldb-commits
mailing list