diff options
author | Fangrui Song <maskray@google.com> | 2020-05-22 15:18:05 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-05-22 15:47:26 -0700 |
commit | 7e49dc6184ef3baf421a5bb0190466cbb1a87785 (patch) | |
tree | ae0997f2d9ddc1f968753a50d5016782113347ef /llvm/lib/MC/MCStreamer.cpp | |
parent | 220c17ffd4e1b127bcc02b25980b7934184ee1da (diff) | |
download | llvm-7e49dc6184ef3baf421a5bb0190466cbb1a87785.zip llvm-7e49dc6184ef3baf421a5bb0190466cbb1a87785.tar.gz llvm-7e49dc6184ef3baf421a5bb0190466cbb1a87785.tar.bz2 |
[MC] Change MCCFIInstruction::createDefCfa to cfiDefCfa which does not negate Offset
The negative Offset has caused a bunch of problems and confused quite a
few call sites. Delete the unneeded negation and fix all call sites.
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 95dad6e..95b1dd5 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -461,7 +461,7 @@ MCSymbol *MCStreamer::emitCFILabel() { void MCStreamer::emitCFIDefCfa(int64_t Register, int64_t Offset) { MCSymbol *Label = emitCFILabel(); MCCFIInstruction Instruction = - MCCFIInstruction::createDefCfa(Label, Register, Offset); + MCCFIInstruction::cfiDefCfa(Label, Register, -Offset); MCDwarfFrameInfo *CurFrame = getCurrentDwarfFrameInfo(); if (!CurFrame) return; |