1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/lib/MC
David Blaikie 8d7e6f6eba PR11740: Disable assembly debug info when assembly already contains line directives
If there is already debug info in the assembly file, and user hope to
use -g option for compiling, we think we should not directly report an
error.

According to what GNU assembler did, it just reused the debug info in
the assembly file, and turned off the DEBUG_TYPE option so that there
will be no new debug info emitted by assembler. This fix is just as what
GNU assembler did.

The concern is the situation that there are two .text sections in the
assembly file, one with debug info and the other one without. Currently
with this fix, the assembler will no longer generate any debug info for
the second .text section. And this is what GNU assembler exactly did for
this situation. So I think this still make some sense.

Patch by Zhizhou Yang!

Differential Revision: http://reviews.llvm.org/D20002

llvm-svn: 270806
2016-05-26 00:22:26 +00:00
..
MCDisassembler Remove unnecessary header include. 2016-05-17 21:15:50 +00:00
MCParser PR11740: Disable assembly debug info when assembly already contains line directives 2016-05-26 00:22:26 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
ConstantPools.cpp
ELFObjectWriter.cpp Revert r270569 (teach llvm-mc to generate compressed debug sections in zlib 2016-05-25 00:14:12 +00:00
LLVMBuild.txt
MachObjectWriter.cpp Reapply: "ARM: put correct symbol index on indirect pointers in __thread_ptr."" 2016-04-26 18:29:16 +00:00
MCAsmBackend.cpp MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
MCAsmInfo.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp ARM: put extern __thread stubs in a special section. 2016-04-25 21:12:04 +00:00
MCAsmInfoELF.cpp
MCAsmStreamer.cpp Revert "[MC] Support symbolic expressions in assembly directives" 2016-05-25 23:29:08 +00:00
MCAssembler.cpp There's no reason to use _ to name variables different just for construction. 2016-05-24 22:15:54 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCCodeView.cpp [codeview] Some cleanup of Symbol Records. 2016-05-17 23:50:21 +00:00
MCContext.cpp Revert r270569 (teach llvm-mc to generate compressed debug sections in zlib 2016-05-25 00:14:12 +00:00
MCDwarf.cpp Read discriminators correctly from object file. 2016-04-28 22:09:37 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [mips] Use MipsMCExpr instead of MCSymbolRefExpr for all relocations. 2016-05-03 13:35:44 +00:00
MCExpr.cpp [MCExpr] avoid UB via negation of INT_MIN 2016-05-20 14:09:41 +00:00
MCFragment.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Don't pass a Reloc::Model to MC. 2016-05-18 11:58:50 +00:00
MCObjectStreamer.cpp Revert "[MC] Support symbolic expressions in assembly directives" 2016-05-25 23:29:08 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Revert "[MC] Support symbolic expressions in assembly directives" 2016-05-25 23:29:08 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolELF.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWin64EH.cpp [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
MCWinEH.cpp [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
StringTableBuilder.cpp Make StringTableBuilder to cache hash values. 2016-05-06 00:51:58 +00:00
SubtargetFeature.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
WinCOFFObjectWriter.cpp
WinCOFFStreamer.cpp [Object] Make .alt_entry directive parsing MachO specific. 2016-04-11 18:33:45 +00:00