OSDN Git Service

Provide support for preserving assembly comments
authorNirav Dave <niravd@google.com>
Mon, 11 Jul 2016 12:42:14 +0000 (12:42 +0000)
committerNirav Dave <niravd@google.com>
Mon, 11 Jul 2016 12:42:14 +0000 (12:42 +0000)
commitaee0f143c937f6721b74c2efd081d9ecac7f99c4
treeb970b8b678a13fc4616ebcf6fda9d89955c395a7
parent20ad7302fa33c1a1498504140159afb58b4e50f8
Provide support for preserving assembly comments

Preserve assembly comments from input in output assembly and flags to
toggle property. This is on by default for inline assembly and off in
llvm-mc.

Parsed comments are emitted immediately before an EOL which generally
places them on the expected line.

Reviewers: rtrieu, dwmw2, rnk, majnemer

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275058 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/MC/MCAsmInfo.h
include/llvm/MC/MCStreamer.h
include/llvm/MC/MCTargetOptions.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmStreamer.cpp
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCParser/ELFAsmParser.cpp
lib/MC/MCStreamer.cpp
test/MC/AsmParser/inline-comments.ll [new file with mode: 0644]
test/MC/AsmParser/preserve-comments.s [new file with mode: 0644]
tools/llc/llc.cpp
tools/llvm-mc/llvm-mc.cpp