summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-27 18:35:54 +0000
committerEric Christopher <echristo@apple.com>2012-03-27 18:35:54 +0000
commit7ed2efca6aae0eeb2bc2cb3072d50f590786e990 (patch)
tree90e06dd9a130a642b6a837a3b1abf47d83aaf3fb /llvm/lib
parente541716286fe6b11fc0abeec1a2cf0c50ffb0533 (diff)
downloadbcm5719-llvm-7ed2efca6aae0eeb2bc2cb3072d50f590786e990.tar.gz
bcm5719-llvm-7ed2efca6aae0eeb2bc2cb3072d50f590786e990.zip
Use DW_AT_low_pc for a single entry point into a routine.
Fixes PR10105 llvm-svn: 153524
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 84fc564f4e3..6f15bfeb2b2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -555,9 +555,9 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
NewCU->addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data2,
DIUnit.getLanguage());
NewCU->addString(Die, dwarf::DW_AT_name, FN);
- // Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This
- // simplifies debug range entries.
- NewCU->addUInt(Die, dwarf::DW_AT_entry_pc, dwarf::DW_FORM_addr, 0);
+ // 2.17.1 requires that we use DW_AT_low_pc for a single entry point
+ // into an entity.
+ NewCU->addUInt(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, 0);
// DW_AT_stmt_list is a offset of line number information for this
// compile unit in debug_line section.
if (Asm->MAI->doesDwarfRequireRelocationForSectionOffset())
OpenPOWER on IntegriCloud