[MC] Flip llc's assembly comment preservation flag to have consistent

orientation with llvm-mc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nirav Dave 2016-07-12 15:32:36 +00:00
parent aef0a9bbc2
commit 72d33ecb16

View File

@ -74,8 +74,9 @@ NoIntegratedAssembler("no-integrated-as", cl::Hidden,
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, LLVMContext &Context) {
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,