mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
[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:
parent
aef0a9bbc2
commit
72d33ecb16
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user