From 067ef412bbc915d0756f28b09a449e7ccc2d369d Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Mon, 19 Jun 2006 15:48:00 +0000 Subject: [PATCH] References need to be section relative. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28858 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/DwarfWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index b384b416a42..61697c634d6 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -2152,7 +2152,7 @@ void DwarfWriter::EmitDebugPubNames() { EmitInt16(DWARF_VERSION); EOL("DWARF Version"); - EmitReference("info_begin", Unit->getID()); + EmitDifference("info_begin", Unit->getID(), "section_info", 0); EOL("Offset of Compilation Unit Info"); EmitDifference("info_end", Unit->getID(), "info_begin", Unit->getID()); -- 2.34.1