Add flags to toggle preservation of assembly comments
authorNirav Dave <niravd@google.com>
Wed, 27 Jul 2016 19:57:40 +0000 (19:57 +0000)
committerNirav Dave <niravd@google.com>
Wed, 27 Jul 2016 19:57:40 +0000 (19:57 +0000)
commit993a1398473ecf3e5deb62350aac4356d061e99f
tree564b67899560d1d55b9c877efccfd49f1a192cfe
parentee1174865000a09ca1fab2100a42c3462771d1d6
Add flags to toggle preservation of assembly comments

Summary: Add -fpreserve-as-comments and -fno-preserve-as-comments.

Reviewers: echristo, rnk

Subscribers: mehdi_amini, llvm-commits

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

llvm-svn: 276907
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CodeGenOptions.def
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/preserve-as-comments.c [new file with mode: 0644]