mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
License headers and style fixes
This commit is contained in:
parent
e8ba51fb84
commit
abcfc7a451
15 changed files with 192 additions and 30 deletions
|
@ -1,3 +1,17 @@
|
|||
//===-- callback_ostream.h - jit support ------------------------*- C++ -*-===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the Boost Software License. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Simple llvm::raw_ostream implementation which sink all input to provided
|
||||
// callback. It uses llvm::function_ref so user must ensure callback lifetime.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CALLBACK_OSTREAM_H
|
||||
#define CALLBACK_OSTREAM_H
|
||||
|
||||
|
@ -9,7 +23,6 @@ class CallbackOstream : public llvm::raw_ostream {
|
|||
CallbackT callback;
|
||||
uint64_t currentPos = 0;
|
||||
|
||||
/// See raw_ostream::write_impl.
|
||||
void write_impl(const char *Ptr, size_t Size) override;
|
||||
|
||||
uint64_t current_pos() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue