[PATCH] D117586: [DebugInfo] Add stringLocationExp field to DIStringType
Chih-Ping Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 18 10:38:30 PST 2022
cchen15 created this revision.
cchen15 added reviewers: aprantl, SouraVX.
Herald added subscribers: dexonsmith, hiraditya.
cchen15 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
DIStringType is used to encode the debug info of a character object in Fortran. A Fortran deferred-length character object is typically implemented as a pair of the following two pieces of info: A pointer to the raw storage of the characters, and the length of the object. The stringLocationExp field contains the DIExpression to get to the raw storage.
This patch also enables the emission of DW_AT_data_location attribute in a DW_TAG_string_type debug info entry based on stringLocationExp in DIStringType.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117586
Files:
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/test/DebugInfo/X86/distringtype.ll
llvm/test/DebugInfo/fortran-string-type.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117586.400909.patch
Type: text/x-patch
Size: 14674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220118/689518a1/attachment-0001.bin>
More information about the llvm-commits
mailing list