aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2017-01-02 03:00:19 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2017-01-02 03:00:19 +0000
commitf7d84ee6ff35c6bfe950bbf451c3e84ef23c194f (patch)
treea0f906023142187e040db3b68eeb7a5a3f72a703 /llvm/lib/MC/MCCodeView.cpp
parentefcfe860723bc611b555d8d1db8c75405807b367 (diff)
downloadllvm-f7d84ee6ff35c6bfe950bbf451c3e84ef23c194f.zip
llvm-f7d84ee6ff35c6bfe950bbf451c3e84ef23c194f.tar.gz
llvm-f7d84ee6ff35c6bfe950bbf451c3e84ef23c194f.tar.bz2
Reapply "[CodeGen] Fix invalid DWARF info on Win64"
This reapplies rL289013 (reverted in rL289014) with the fixes identified in D21731. Should hopefully pass the buildbots this time. llvm-svn: 290809
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index 22bdba1..3773542 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.