1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: remove references to GNU for compression type
Delete dead zlib-gnu code and simplify writeSectionData.
Author: ronlieb
Origin: upstream, https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/commit/ec7df87560359d70559c214f102cce02358b7369
Applied-Upstream: ec7df87560359d70559c214f102cce02358b7369
Reviewed-by: Étienne Mollier <emollier@debian.org>
Last-Update: 2022-10-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- rocm-compilersupport.orig/lib/comgr/src/comgr-compiler.cpp
+++ rocm-compilersupport/lib/comgr/src/comgr-compiler.cpp
@@ -244,13 +244,12 @@
OPT_compress_debug_sections_EQ)) {
if (A->getOption().getID() == OPT_compress_debug_sections) {
// TODO: be more clever about the compression type auto-detection
- Opts.CompressDebugSections = llvm::DebugCompressionType::GNU;
+ Opts.CompressDebugSections = llvm::DebugCompressionType::Z;
} else {
Opts.CompressDebugSections =
llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue())
.Case("none", llvm::DebugCompressionType::None)
.Case("zlib", llvm::DebugCompressionType::Z)
- .Case("zlib-gnu", llvm::DebugCompressionType::GNU)
.Default(llvm::DebugCompressionType::None);
}
}
|