[PATCH] D74680: Add an Offset field to the SourceLocation for LookupResult objects.
Greg Clayton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 15 21:29:52 PST 2020
clayborg created this revision.
clayborg added reviewers: labath, aadsm, serhiy.redko, jankratochvil, xiaobai, wallace, aprantl, JDevlieghere.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
The Offset provides the offset within the function in a SourceLocation struct. This allows us to show the byte offset within a function. We also track offsets within inline functions as well. Updated the lookup tests to verify the offset for functions and inline functions.
0x1000: main + 32 @ /tmp/main.cpp:45
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74680
Files:
llvm/include/llvm/DebugInfo/GSYM/LookupResult.h
llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
llvm/lib/DebugInfo/GSYM/InlineInfo.cpp
llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74680.244850.patch
Type: text/x-patch
Size: 7151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200216/658116fa/attachment.bin>
More information about the llvm-commits
mailing list