[PATCH] D149058: [BPF][DebugInfo] Use .BPF.ext for line info when DWARF is not available

Eduard Zingerman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 17:06:15 PDT 2023


eddyz87 updated this revision to Diff 537549.
eddyz87 added a comment.

Fix for a memory handling issue in unit tests:
`Storage` parameter passed to `yaml::yaml2ObjectFile()` has to be alive while resulting `ObjectFile` is used.
This updates the mock data class to own both object file and storage buffer.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149058/new/

https://reviews.llvm.org/D149058

Files:
  llvm/include/llvm/DebugInfo/BTF/BTF.h
  llvm/include/llvm/DebugInfo/BTF/BTFContext.h
  llvm/include/llvm/DebugInfo/BTF/BTFParser.h
  llvm/include/llvm/DebugInfo/DIContext.h
  llvm/lib/DebugInfo/BTF/BTFContext.cpp
  llvm/lib/DebugInfo/BTF/BTFParser.cpp
  llvm/lib/DebugInfo/BTF/CMakeLists.txt
  llvm/lib/DebugInfo/CMakeLists.txt
  llvm/lib/DebugInfo/Symbolize/CMakeLists.txt
  llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
  llvm/test/tools/llvm-objdump/BPF/Inputs/test.c
  llvm/test/tools/llvm-objdump/BPF/interleaved-source-test.ll
  llvm/tools/llvm-objdump/SourcePrinter.cpp
  llvm/tools/llvm-objdump/SourcePrinter.h
  llvm/unittests/DebugInfo/BTF/BTFParserTest.cpp
  llvm/unittests/DebugInfo/BTF/CMakeLists.txt
  llvm/unittests/DebugInfo/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149058.537549.patch
Type: text/x-patch
Size: 42128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/035a371f/attachment.bin>


More information about the llvm-commits mailing list