[llvm] r275179 - [MC] Flip llc's assembly comment preservation flag to have consistent
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 08:32:37 PDT 2016
Author: niravd
Date: Tue Jul 12 10:32:36 2016
New Revision: 275179
URL: http://llvm.org/viewvc/llvm-project?rev=275179&view=rev
Log:
[MC] Flip llc's assembly comment preservation flag to have consistent
orientation with llvm-mc.
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=275179&r1=275178&r2=275179&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Tue Jul 12 10:32:36 2016
@@ -74,8 +74,9 @@ NoIntegratedAssembler("no-integrated-as"
cl::desc("Disable integrated assembler"));
static cl::opt<bool>
- NoPreserveComments("fno-preserve-as-comments", cl::Hidden,
- cl::desc("Preserve Comments in outputted assembly"));
+ PreserveComments("fpreserve-as-comments", cl::Hidden,
+ cl::desc("Preserve Comments in outputted assembly"),
+ cl::init(true));
// Determine optimization level.
static cl::opt<char>
@@ -336,7 +337,7 @@ static int compileModule(char **argv, LL
Options.MCOptions.ShowMCEncoding = ShowMCEncoding;
Options.MCOptions.MCUseDwarfDirectory = EnableDwarfDirectory;
Options.MCOptions.AsmVerbose = AsmVerbose;
- Options.MCOptions.PreserveAsmComments = !NoPreserveComments;
+ Options.MCOptions.PreserveAsmComments = PreserveComments;
std::unique_ptr<TargetMachine> Target(
TheTarget->createTargetMachine(TheTriple.getTriple(), CPUStr, FeaturesStr,
More information about the llvm-commits
mailing list