[PATCH] D73173: [NFC][DWARF] Use proper analog GNU attribute for the pc address

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 04:25:52 PST 2020


djtodoro created this revision.
djtodoro added reviewers: vsk, aprantl, dstenb.
djtodoro added a project: debug-info.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

The low_pc is analog to the `DW_AT_call_return_pc`, since it describes the return address after the call. The `DW_AT_call_pc` is the address of the call instruction, and we don't use it at the moment.


https://reviews.llvm.org/D73173

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp


Index: llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
===================================================================
--- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -953,7 +953,6 @@
     return dwarf::DW_AT_GNU_call_site_target;
   case dwarf::DW_AT_call_origin:
     return dwarf::DW_AT_abstract_origin;
-  case dwarf::DW_AT_call_pc:
   case dwarf::DW_AT_call_return_pc:
     return dwarf::DW_AT_low_pc;
   case dwarf::DW_AT_call_value:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73173.239541.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/3f66bc1c/attachment.bin>


More information about the llvm-commits mailing list