[MC] Flip llc's assembly comment preservation flag to have consistent
orientation with llvm-mc. llvm-svn: 275179
This commit is contained in:
parent
711ca868fc
commit
2d84ec67f8
|
|
@ -74,8 +74,9 @@ NoIntegratedAssembler("no-integrated-as", cl::Hidden,
|
||||||
cl::desc("Disable integrated assembler"));
|
cl::desc("Disable integrated assembler"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
NoPreserveComments("fno-preserve-as-comments", cl::Hidden,
|
PreserveComments("fpreserve-as-comments", cl::Hidden,
|
||||||
cl::desc("Preserve Comments in outputted assembly"));
|
cl::desc("Preserve Comments in outputted assembly"),
|
||||||
|
cl::init(true));
|
||||||
|
|
||||||
// Determine optimization level.
|
// Determine optimization level.
|
||||||
static cl::opt<char>
|
static cl::opt<char>
|
||||||
|
|
@ -336,7 +337,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
|
||||||
Options.MCOptions.ShowMCEncoding = ShowMCEncoding;
|
Options.MCOptions.ShowMCEncoding = ShowMCEncoding;
|
||||||
Options.MCOptions.MCUseDwarfDirectory = EnableDwarfDirectory;
|
Options.MCOptions.MCUseDwarfDirectory = EnableDwarfDirectory;
|
||||||
Options.MCOptions.AsmVerbose = AsmVerbose;
|
Options.MCOptions.AsmVerbose = AsmVerbose;
|
||||||
Options.MCOptions.PreserveAsmComments = !NoPreserveComments;
|
Options.MCOptions.PreserveAsmComments = PreserveComments;
|
||||||
|
|
||||||
std::unique_ptr<TargetMachine> Target(
|
std::unique_ptr<TargetMachine> Target(
|
||||||
TheTarget->createTargetMachine(TheTriple.getTriple(), CPUStr, FeaturesStr,
|
TheTarget->createTargetMachine(TheTriple.getTriple(), CPUStr, FeaturesStr,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue