[PATCH] D115007: Dump swift5 reflection section data into dsym bundle generated binary with dsymutil
Shubham Sandeep Rastogi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 2 16:22:57 PST 2021
rastogishubham created this revision.
rastogishubham added reviewers: aprantl, JDevlieghere, friss.
rastogishubham added a project: debug-info.
Herald added a subscriber: hiraditya.
rastogishubham requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Herald added a project: LLVM.
This change allows dsymutil to dump swift5 reflection section data into the binary that is created by dsymutil in the dsym bundle.
We only want to emit these data of these sections if the input binary does not have those sections present in them. Therefore, assuming that the input binary doesn't have the section data, dsymutil is supposed to pick the data up from the object files. If the Input binary has the data, dsymutil works the same as it has before this change.
https://reviews.llvm.org/D115007
Files:
llvm/include/llvm/DWARFLinker/DWARFStreamer.h
llvm/include/llvm/MC/MCObjectFileInfo.h
llvm/include/llvm/Object/MachO.h
llvm/include/llvm/Object/ObjectFile.h
llvm/lib/DWARFLinker/DWARFStreamer.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/tools/dsymutil/Inputs/main.yaml
llvm/test/tools/dsymutil/Inputs/reflection_metadata.yaml
llvm/test/tools/dsymutil/Inputs/test.yaml
llvm/test/tools/dsymutil/reflection-dump.test
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
More information about the llvm-commits
mailing list