[llvm] 91b0956 - [NFC][DwarfDebug] Use proper analog GNU attribute for the pc address

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 03:15:55 PST 2020


Author: Djordje Todorovic
Date: 2020-01-23T12:15:35+01:00
New Revision: 91b0956f3886c225c7011f11220e225cded06e57

URL: https://github.com/llvm/llvm-project/commit/91b0956f3886c225c7011f11220e225cded06e57
DIFF: https://github.com/llvm/llvm-project/commit/91b0956f3886c225c7011f11220e225cded06e57.diff

LOG: [NFC][DwarfDebug] Use proper analog GNU attribute for the pc address

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.

Differential Revision: https://reviews.llvm.org/D73173

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index c4e86df078b2..9dbe40d2db2e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -953,7 +953,6 @@ DwarfCompileUnit::getDwarf5OrGNUAttr(dwarf::Attribute Attr) const {
     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:


        


More information about the llvm-commits mailing list