diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-07 14:16:26 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-07 14:46:48 +0300 |
commit | c59a2427a037c1a04a24ed46497ab3a298ffa5d1 (patch) | |
tree | 59fa5633c15a4c6c45cb9798535ec81252bd91c8 /contrib/libs/llvm16/include/llvm | |
parent | b92a4e77b0ee24fc7ae9d4488d97999ac39f48e3 (diff) | |
download | ydb-c59a2427a037c1a04a24ed46497ab3a298ffa5d1.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/libs/llvm16/include/llvm')
-rw-r--r-- | contrib/libs/llvm16/include/llvm/DebugInfo/DWARF/DWARFContext.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/libs/llvm16/include/llvm/DebugInfo/DWARF/DWARFContext.h b/contrib/libs/llvm16/include/llvm/DebugInfo/DWARF/DWARFContext.h index 82da8b032d..490bf5ff3c 100644 --- a/contrib/libs/llvm16/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ b/contrib/libs/llvm16/include/llvm/DebugInfo/DWARF/DWARFContext.h @@ -452,7 +452,16 @@ public: /// address. /// TODO: change input parameter from "uint64_t Address" /// into "SectionedAddress Address" - DWARFCompileUnit *getCompileUnitForAddress(uint64_t Address); + DWARFCompileUnit *getCompileUnitForCodeAddress(uint64_t Address); + + /// Return the compile unit which contains data with the provided address. + /// Note: This is more expensive than `getCompileUnitForAddress`, as if + /// `Address` isn't found in the CU ranges (which is cheap), then it falls + /// back to an expensive O(n) walk of all CU's looking for data that spans the + /// address. + /// TODO: change input parameter from "uint64_t Address" into + /// "SectionedAddress Address" + DWARFCompileUnit *getCompileUnitForDataAddress(uint64_t Address); /// Returns whether CU/TU should be populated manually. TU Index populated /// manually only for DWARF5. |