diff options
author | Keno Fischer <kfischer@college.harvard.edu> | 2016-12-08 01:40:21 +0000 |
---|---|---|
committer | Keno Fischer <kfischer@college.harvard.edu> | 2016-12-08 01:40:21 +0000 |
commit | 460218fb7d13132e4ea3def3b75eb43aa505b2db (patch) | |
tree | 0527e1c2d2e68010380ffda91cbb5c08bd3d8231 /llvm/lib/MC/MCCodeView.cpp | |
parent | 4574a890511d8bf7b9e7e3d59d9ad368ab79f843 (diff) | |
download | llvm-460218fb7d13132e4ea3def3b75eb43aa505b2db.zip llvm-460218fb7d13132e4ea3def3b75eb43aa505b2db.tar.gz llvm-460218fb7d13132e4ea3def3b75eb43aa505b2db.tar.bz2 |
[CodeGen] Fix invalid DWARF info on Win64
The relocations for `DIEEntry::EmitValue` were wrong for Win64
(emitting FK_Data_4 instead of FK_SecRel_4). This corrects that
oversight so that the DWARF data is correct in Win64 COFF files.
Fixes PR15393.
Patch by Jameson Nash <jameson@juliacomputing.com> based on a patch
by David Majnemer.
Differential Revision: https://reviews.llvm.org/D21731
llvm-svn: 289013
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r-- | llvm/lib/MC/MCCodeView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index ac1acc0..ae0e50a 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -200,7 +200,7 @@ void CodeViewContext::emitLineTableForFunction(MCObjectStreamer &OS, OS.EmitIntValue(unsigned(ModuleSubstreamKind::Lines), 4); OS.emitAbsoluteSymbolDiff(LineEnd, LineBegin, 4); OS.EmitLabel(LineBegin); - OS.EmitCOFFSecRel32(FuncBegin); + OS.EmitCOFFSecRel32(FuncBegin, /*Offset=*/0); OS.EmitCOFFSectionIndex(FuncBegin); // Actual line info. |