1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib/MC
Nirav Dave 56e1aec7c5 [MC] Fix handling of end-of-line preprocessor comments
Summary:
When parsing assembly where the line comment syntax is not hash, the
lexer cannot distinguish between hash's that start a hash line comment
and one that is part of an assembly statement and must be distinguished
during parsing. Previously, this was incompletely handled by not checking
for EndOfStatement at the end of statements and interpreting hash
prefixed statements as comments.

Change EndOfStatement Parsing to check for Hash comments and reintroduce
Hash statement parsing to catch previously handled cases.

Reviewers: rnk, majnemer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23017

llvm-svn: 277407
2016-08-02 01:05:29 +00:00
..
MCDisassembler Apply clang-tidy's misc-move-constructor-init throughout LLVM. 2016-05-27 14:27:24 +00:00
MCParser [MC] Fix handling of end-of-line preprocessor comments 2016-08-02 01:05:29 +00:00
CMakeLists.txt Delete MCCodeGenInfo. 2016-06-30 18:25:11 +00:00
ConstantPools.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
ELFObjectWriter.cpp Delete some dead code. 2016-06-21 19:48: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 Provide support for preserving assembly comments 2016-07-11 12:42:14 +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 [MC] When emitting output hash comments always use standard line comment seperator 2016-07-29 14:42:00 +00:00
MCAssembler.cpp [MC] Don't crash when trying to emit a relocation against .bss. 2016-07-26 18:16:33 +00:00
MCCodeEmitter.cpp
MCCodeView.cpp [codeview] Shrink inlined call site line info tables 2016-07-14 23:47:15 +00:00
MCContext.cpp Add support for allowing us to create uniquely identified "COMDAT" or "ELF 2016-07-01 06:07:38 +00:00
MCDwarf.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Fix instance of -Wdelete-incomplete 2016-06-22 23:25:26 +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 Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCLinkerOptimizationHint.cpp Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp [ARM] Fix Thumb text sections' flags under COFF/Windows 2016-06-27 14:42:20 +00:00
MCObjectStreamer.cpp Fix branch relaxation in 16-bit mode. 2016-07-11 14:23:53 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp [codeview] Bail on a DBG_VALUE register operand with no register 2016-02-16 21:49:26 +00:00
MCSchedule.cpp
MCSection.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Provide support for preserving assembly comments 2016-07-11 12:42:14 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSymbolELF.cpp
MCTargetOptions.cpp Initialize PreserveAsmComments in MCTargetOptions 2016-07-27 19:19:13 +00:00
MCValue.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
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 Apply clang-tidy's modernize-loop-convert to lib/MC. 2016-06-26 14:49:00 +00:00
WinCOFFStreamer.cpp [MC, COFF] Permit a variable to be redefined 2016-07-08 21:54:16 +00:00