diff options
author | Julien Roy <julien@jroy.ca> | 2021-12-10 10:29:37 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2021-12-10 10:29:37 -0500 |
commit | 5ab02820562429ed0ac7df8be555bc66063ce130 (patch) | |
tree | 65c79aaf2a21329b8c404c193897856ed5e5bc59 /sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch | |
parent | d97cecc0c33bbf233f295f304f7b31ce98861852 (diff) | |
download | MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.tar.gz MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.tar.bz2 MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.zip |
Added patches for llvm-rom from gentoo tree
Diffstat (limited to 'sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch')
-rw-r--r-- | sys-devel/llvm-roc/files/llvm-roc-4.2.0-current_pos.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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 0000000..0f33989 --- /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(); + } |