diff options
author | Nirav Dave <niravd@google.com> | 2016-07-11 12:42:14 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2016-07-11 12:42:14 +0000 |
commit | 53a72f4d3c644b0364126daa67fb823171f48781 (patch) | |
tree | 4d971584d3c227afcfaa4c2fc84e6f3f9a3282a7 /llvm/lib/MC/MCAsmInfo.cpp | |
parent | faef9a766745acf6938839a5d433f5b2b5d2863f (diff) | |
download | bcm5719-llvm-53a72f4d3c644b0364126daa67fb823171f48781.tar.gz bcm5719-llvm-53a72f4d3c644b0364126daa67fb823171f48781.zip |
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
llvm-svn: 275058
Diffstat (limited to 'llvm/lib/MC/MCAsmInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index fa83e395f8d..4a05175fdec 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -107,6 +107,7 @@ MCAsmInfo::MCAsmInfo() { // architecture basis. // - The target subclasses for AArch64, ARM, and X86 handle these cases UseIntegratedAssembler = false; + PreserveAsmComments = true; CompressDebugSections = DebugCompressionType::DCT_None; } |