[PATCH] D93462: [DebugInfo] Support Fortran 'use <external module>' statement.

Chih-Ping Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 08:29:27 PST 2020


cchen15 created this revision.
cchen15 added reviewers: aprantl, SouraVX, alok.
Herald added subscribers: dexonsmith, pengfei, hiraditya.
cchen15 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

The main change in this patch is to add a 'IsDecl' field to DIModule so that when IsDecl is set to true, the debug info entry generated for the module would be marked as a declaration. That way, the debugger (GDB at least) would look up the definition of the module in the gloabl scope.

      

Please see the comments in llvm/test/DebugInfo/X86/dimodule.ll for what the debug info entries would look like.


https://reviews.llvm.org/D93462

Files:
  llvm/include/llvm/IR/DIBuilder.h
  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/DIBuilder.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/test/Assembler/dimodule.ll
  llvm/test/Bitcode/DIModule-fortran-external-module.ll
  llvm/test/DebugInfo/X86/dimodule.ll
  llvm/unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93462.312512.patch
Type: text/x-patch
Size: 24622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201217/f8dc4d2a/attachment.bin>


More information about the llvm-commits mailing list