[PATCH] D59790: [DebugInfo][Docs] Document how variable location metadata is transformed through target codegen

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 04:37:22 PDT 2019


bjope added a comment.

Nice!

One more thing that could be described (not neccessarily in this patch):

- dbg.declare is removed by ISel and the information is squirreled away in a table in the MachineFunction. Later `DwarfDebug::collectVariableInfoFromMFTable `is fetching the debug info using `MF->getVariableDbgInfo()`. That kind of explains why there is no DBG_DECLARE meta instruction, or any DBG_VALUE instructions when using -O0, which otherwise could be a mystery for someone not familiar with that part.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D59790





More information about the llvm-commits mailing list