<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 12, 2016 at 8:39 AM Nirav Dave via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: niravd<br>
Date: Tue Jul 12 10:32:36 2016<br>
New Revision: 275179<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=275179&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=275179&view=rev</a><br>
Log:<br>
[MC] Flip llc's assembly comment preservation flag to have consistent<br>
orientation with llvm-mc.<br>
<br>
Modified:<br>
    llvm/trunk/tools/llc/llc.cpp<br>
<br>
Modified: llvm/trunk/tools/llc/llc.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=275179&r1=275178&r2=275179&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=275179&r1=275178&r2=275179&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llc/llc.cpp (original)<br>
+++ llvm/trunk/tools/llc/llc.cpp Tue Jul 12 10:32:36 2016<br>
@@ -74,8 +74,9 @@ NoIntegratedAssembler("no-integrated-as"<br>
                       cl::desc("Disable integrated assembler"));<br>
<br>
 static cl::opt<bool><br>
-    NoPreserveComments("fno-preserve-as-comments", cl::Hidden,<br>
-                       cl::desc("Preserve Comments in outputted assembly"));<br>
+    PreserveComments("fpreserve-as-comments", cl::Hidden,<br>
+                     cl::desc("Preserve Comments in outputted assembly"),<br>
+                     cl::init(true));<br>
<br></blockquote><div><br></div><div>No f please. There's no reason.</div><div><br></div><div>Thanks.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 // Determine optimization level.<br>
 static cl::opt<char><br>
@@ -336,7 +337,7 @@ static int compileModule(char **argv, LL<br>
   Options.MCOptions.ShowMCEncoding = ShowMCEncoding;<br>
   Options.MCOptions.MCUseDwarfDirectory = EnableDwarfDirectory;<br>
   Options.MCOptions.AsmVerbose = AsmVerbose;<br>
-  Options.MCOptions.PreserveAsmComments = !NoPreserveComments;<br>
+  Options.MCOptions.PreserveAsmComments = PreserveComments;<br>
<br>
   std::unique_ptr<TargetMachine> Target(<br>
       TheTarget->createTargetMachine(TheTriple.getTriple(), CPUStr, FeaturesStr,<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>