diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 32e7cd4f909..bda0ec14599 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -338,7 +338,10 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, MakeStartMinusEndExpr(*MCOS, *LineStartSym, *LineEndSym, 4), 4); // Next 2 bytes is the Version. + // FIXME: On Darwin we still default to V2. unsigned LineTableVersion = context.getDwarfVersion(); + if (context.getObjectFileInfo()->getTargetTriple().isOSDarwin()) + LineTableVersion = 2; MCOS->EmitIntValue(LineTableVersion, 2); // Keep track of the bytes between the very start and where the header length |

