Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 711014
Collapse All | Expand All

(-)llvm-project-roc-ocl-3.1.0.orig/llvm/include/llvm/Support/raw_ostream.h (-3 / +1 lines)
Lines 519-527 Link Here
519
  /// See raw_ostream::write_impl.
519
  /// See raw_ostream::write_impl.
520
  void write_impl(const char *Ptr, size_t Size) override;
520
  void write_impl(const char *Ptr, size_t Size) override;
521
521
522
  /// Return the current position within the stream, not counting the bytes
522
  uint64_t current_pos() const override;
523
  /// currently in the buffer.
524
  uint64_t current_pos() const override { return OS.size(); }
525
523
526
public:
524
public:
527
  explicit raw_string_ostream(std::string &O) : OS(O) {}
525
  explicit raw_string_ostream(std::string &O) : OS(O) {}
(-)llvm-project-roc-ocl-3.1.0.orig/llvm/lib/Support/raw_ostream.cpp (+4 lines)
Lines 895-900 Link Here
895
//  raw_string_ostream
895
//  raw_string_ostream
896
//===----------------------------------------------------------------------===//
896
//===----------------------------------------------------------------------===//
897
897
898
/// Return the current position within the stream, not counting the bytes
899
/// currently in the buffer.
900
uint64_t raw_string_ostream::current_pos() const { return OS.size(); }
901
898
raw_string_ostream::~raw_string_ostream() {
902
raw_string_ostream::~raw_string_ostream() {
899
  flush();
903
  flush();
900
}
904
}

Return to bug 711014