diff options
| author | bors <bors@rust-lang.org> | 2018-08-14 17:24:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-14 17:24:18 +0000 |
| commit | a5733050de780ae4d11e3a7af615df792fdf908e (patch) | |
| tree | df7f2e100045edfc854e480aaf204711b6560626 /src/rustllvm/PassWrapper.cpp | |
| parent | 23f09bbed4ef12c5f9db198c22f50b608ea6c6d5 (diff) | |
| parent | 8e7f69af9ce5ec270b79a5125635cacfaeb936ba (diff) | |
| download | rust-a5733050de780ae4d11e3a7af615df792fdf908e.tar.gz rust-a5733050de780ae4d11e3a7af615df792fdf908e.zip | |
Auto merge of #53354 - kennytm:rollup, r=kennytm
Rollup of 11 pull requests Successful merges: - #53112 (pretty print BTreeSet) - #53208 (Don't panic on std::env::vars() when env is null.) - #53226 (driver: set the syntax edition in phase 1) - #53229 (Make sure rlimit is only ever increased) - #53233 (targets: aarch64: Add bare-metal aarch64 target) - #53239 (rustc_codegen_llvm: Restore the closure env alloca hack for LLVM 5.) - #53246 (A few cleanups) - #53257 (Idiomatic improvements to IP method) - #53274 (Remove statics field from CodegenCx) - #53290 (Make LLVM emit assembly comments with -Z asm-comments) - #53317 (Mark prior failure to avoid ICE)
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 7305dc71cbf..d9fbd494ab3 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -366,7 +366,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine( bool PositionIndependentExecutable, bool FunctionSections, bool DataSections, bool TrapUnreachable, - bool Singlethread) { + bool Singlethread, + bool AsmComments) { auto OptLevel = fromRust(RustOptLevel); auto RM = fromRust(RustReloc); @@ -393,6 +394,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine( } Options.DataSections = DataSections; Options.FunctionSections = FunctionSections; + Options.MCOptions.AsmVerbose = AsmComments; + Options.MCOptions.PreserveAsmComments = AsmComments; if (TrapUnreachable) { // Tell LLVM to codegen `unreachable` into an explicit trap instruction. |
