diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2016-12-16 14:02:28 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2016-12-16 14:02:28 +0000 |
| commit | c4d695e25bf71096a7c0476588cd976715ee6f86 (patch) | |
| tree | f899ae8dacc9c34c08ee3536e16246949eee1e82 /llvm/lib/MC | |
| parent | 36ef5dc3df23bc27afb0dd644d85ddd861e4a81b (diff) | |
| download | bcm5719-llvm-c4d695e25bf71096a7c0476588cd976715ee6f86.tar.gz bcm5719-llvm-c4d695e25bf71096a7c0476588cd976715ee6f86.zip | |
Speculatively revert r289925, see PR31407
llvm-svn: 289944
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 5e4230a81f0..a7551a3283a 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -263,8 +263,8 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, emitAbsValue(*MCOS, MakeStartMinusEndExpr(*MCOS, *LineStartSym, *LineEndSym, 4), 4); - // Next 2 bytes is the Version. - MCOS->EmitIntValue(context.getDwarfVersion(), 2); + // Next 2 bytes is the Version, which is Dwarf 2. + MCOS->EmitIntValue(2, 2); // Create a symbol for the end of the prologue (to be set when we get there). MCSymbol *ProEndSym = context.createTempSymbol(); // Lprologue_end @@ -279,11 +279,6 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, // Parameters of the state machine, are next. MCOS->EmitIntValue(context.getAsmInfo()->getMinInstAlignment(), 1); - // maximum_operations_per_instruction - // For non-VLIW architectures this field is always 1. - // FIXME: VLIW architectures need to update this field accordingly. - if (context.getDwarfVersion() >= 4) - MCOS->EmitIntValue(1, 1); MCOS->EmitIntValue(DWARF2_LINE_DEFAULT_IS_STMT, 1); MCOS->EmitIntValue(Params.DWARF2LineBase, 1); MCOS->EmitIntValue(Params.DWARF2LineRange, 1); |

