From 9aa80713372911cec499b3adb2cd746790920916 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 29 Jun 2021 10:15:54 +0100 Subject: gentoo resync : 29.06.2021 --- .../llvm-roc/files/llvm-roc-4.2.0-add_Object.patch | 11 +++++++++ .../files/llvm-roc-4.2.0-current_pos.patch | 28 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 sys-devel/llvm-roc/files/llvm-roc-4.2.0-add_Object.patch create mode 100644 sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch (limited to 'sys-devel/llvm-roc/files') diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.2.0-add_Object.patch b/sys-devel/llvm-roc/files/llvm-roc-4.2.0-add_Object.patch new file mode 100644 index 000000000000..da21ab2fc85a --- /dev/null +++ b/sys-devel/llvm-roc/files/llvm-roc-4.2.0-add_Object.patch @@ -0,0 +1,11 @@ +diff --color -uprN orig/lib/Target/AMDGPU/Disassembler/CMakeLists.txt llvm/lib/Target/AMDGPU/Disassembler/CMakeLists.txt +--- orig/lib/Target/AMDGPU/Disassembler/CMakeLists.txt 2021-06-14 11:57:54.222796911 +0800 ++++ llvm/lib/Target/AMDGPU/Disassembler/CMakeLists.txt 2021-06-14 11:58:35.206796875 +0800 +@@ -11,6 +11,7 @@ add_llvm_component_library(LLVMAMDGPUDis + MC + MCDisassembler + Support ++ Object + + ADD_TO_COMPONENT + AMDGPU diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch b/sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch new file mode 100644 index 000000000000..0f3398951b07 --- /dev/null +++ b/sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch @@ -0,0 +1,28 @@ +diff -Naur a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h +--- a/include/llvm/Support/raw_ostream.h 2021-05-22 19:56:44.779955686 +0200 ++++ b/include/llvm/Support/raw_ostream.h 2021-05-22 20:00:49.449954752 +0200 +@@ -610,9 +610,7 @@ + /// See raw_ostream::write_impl. + void write_impl(const char *Ptr, size_t Size) override; + +- /// Return the current position within the stream, not counting the bytes +- /// currently in the buffer. +- uint64_t current_pos() const override { return OS.size(); } ++ uint64_t current_pos() const override; + + public: + explicit raw_string_ostream(std::string &O) : OS(O) { +diff -Naur a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp +--- a/lib/Support/raw_ostream.cpp 2021-05-22 19:59:05.651955148 +0200 ++++ b/lib/Support/raw_ostream.cpp 2021-05-22 20:01:22.929954625 +0200 +@@ -938,6 +938,10 @@ + // raw_string_ostream + //===----------------------------------------------------------------------===// + ++/// Return the current position within the stream, not counting the bytes ++/// currently in the buffer. ++uint64_t raw_string_ostream::current_pos() const { return OS.size(); } ++ + raw_string_ostream::~raw_string_ostream() { + flush(); + } -- cgit v1.2.3