[all-commits] [llvm/llvm-project] 95e395: Add an Offset field to the SourceLocation for Look...

Greg Clayton via All-commits all-commits at lists.llvm.org
Wed Feb 19 16:12:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 95e3956189a6722d1ec4b6d98fb855ee257e64fe
      https://github.com/llvm/llvm-project/commit/95e3956189a6722d1ec4b6d98fb855ee257e64fe
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/GSYM/LookupResult.h
    M llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
    M llvm/lib/DebugInfo/GSYM/InlineInfo.cpp
    M llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp

  Log Message:
  -----------
  Add an Offset field to the SourceLocation for LookupResult objects.

Summary:
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

Reviewers: labath, aadsm, serhiy.redko, jankratochvil, xiaobai, wallace, aprantl, JDevlieghere

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74680




More information about the All-commits mailing list