diff options
author | Jack de Kleuver <jackdekleuver@gmail.com> | 2022-11-05 18:13:32 +1100 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2022-11-19 19:50:49 +0800 |
commit | 6d019ee6f384e80ba61a74c429a654a96d0b09ec (patch) | |
tree | baa8a6374a1994b5799a411a174b6327dcdeae1d /dev-libs/rocm-comgr/files | |
parent | dev-libs/rocm-device-libs: Bump LLVM version to 15 (diff) | |
download | gentoo-6d019ee6f384e80ba61a74c429a654a96d0b09ec.tar.gz gentoo-6d019ee6f384e80ba61a74c429a654a96d0b09ec.tar.bz2 gentoo-6d019ee6f384e80ba61a74c429a654a96d0b09ec.zip |
dev-libs/rocm-comgr: Bump LLVM version to 15
patch files to work with new compiler version
Signed-off-by: Jack de Kleuver <jackdekleuver@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-libs/rocm-comgr/files')
-rw-r--r-- | dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-args-changed | 20 | ||||
-rw-r--r-- | dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-remove-zlib-gnu | 17 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-args-changed b/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-args-changed new file mode 100644 index 000000000000..545b1c632182 --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-args-changed @@ -0,0 +1,20 @@ +--- a/src/comgr-compiler.cpp ++++ b/src/comgr-compiler.cpp +@@ -453,7 +453,7 @@ static bool executeAssemblerImpl(AssemblerInvocation &Opts, + std::unique_ptr<MCCodeEmitter> MCE; + std::unique_ptr<MCAsmBackend> MAB; + if (Opts.ShowEncoding) { +- MCE.reset(TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx)); ++ MCE.reset(TheTarget->createMCCodeEmitter(*MCII, Ctx)); + MCTargetOptions Options; + MAB.reset(TheTarget->createMCAsmBackend(*STI, *MRI, Options)); + } +@@ -472,7 +472,7 @@ static bool executeAssemblerImpl(AssemblerInvocation &Opts, + Out = BOS.get(); + } + +- MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx); ++ MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, Ctx); + MCTargetOptions Options; + MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*STI, *MRI, Options); + Triple T(Opts.Triple); diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-remove-zlib-gnu b/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-remove-zlib-gnu new file mode 100644 index 000000000000..41e51a407ba9 --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.1.3-llvm-15-remove-zlib-gnu @@ -0,0 +1,17 @@ +--- a/src/comgr-compiler.cpp ++++ b/src/comgr-compiler.cpp +@@ -244,13 +244,12 @@ bool AssemblerInvocation::createFromArgs(AssemblerInvocation &Opts, + 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); + } + } |