diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-26 13:39:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-26 13:39:09 +0100 |
| commit | 0ae653a5318f4eaa9a3f319d1a622b6f2b354029 (patch) | |
| tree | ee1ccbe3c67ccf329e507247083d1bb8be108e8c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 85c11de2f2ecc9dcc1b94f550351af0cd02e96dc (diff) | |
| parent | fdbc121620704ab50bd427ff1a2bb3282ffac745 (diff) | |
| download | rust-0ae653a5318f4eaa9a3f319d1a622b6f2b354029.tar.gz rust-0ae653a5318f4eaa9a3f319d1a622b6f2b354029.zip | |
Rollup merge of #79365 - richkadel:llvm-cov-map-version-4, r=wesleywiser
Upgrades the coverage map to Version 4 Changes the coverage map injected into binaries compiled with `-Zinstrument-coverage` to LLVM Coverage Mapping Format, Version 4 (from Version 3). Note, binaries compiled with this version will require LLVM tools from at least LLVM Version 11. r? ``@wesleywiser``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 9b0c176b692..e17f933932e 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -1462,7 +1462,7 @@ extern "C" void LLVMRustSetComdat(LLVMModuleRef M, LLVMValueRef V, const char *Name, size_t NameLen) { Triple TargetTriple(unwrap(M)->getTargetTriple()); GlobalObject *GV = unwrap<GlobalObject>(V); - if (!TargetTriple.isOSBinFormatMachO()) { + if (TargetTriple.supportsCOMDAT()) { StringRef NameRef(Name, NameLen); GV->setComdat(unwrap(M)->getOrInsertComdat(NameRef)); } |
