1*8e4887a1SAlex Zinenko //===- RawOstreamExtras.cpp - Extensions to LLVM's raw_ostream ------------===// 2*8e4887a1SAlex Zinenko // 3*8e4887a1SAlex Zinenko // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*8e4887a1SAlex Zinenko // See https://llvm.org/LICENSE.txt for license information. 5*8e4887a1SAlex Zinenko // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*8e4887a1SAlex Zinenko // 7*8e4887a1SAlex Zinenko //===----------------------------------------------------------------------===// 8*8e4887a1SAlex Zinenko 9*8e4887a1SAlex Zinenko #include "mlir/Support/RawOstreamExtras.h" 10*8e4887a1SAlex Zinenko #include "llvm/Support/raw_ostream.h" 11*8e4887a1SAlex Zinenko thread_safe_nulls()12*8e4887a1SAlex Zinenkollvm::raw_ostream &mlir::thread_safe_nulls() { 13*8e4887a1SAlex Zinenko static thread_local llvm::raw_null_ostream stream; 14*8e4887a1SAlex Zinenko return stream; 15*8e4887a1SAlex Zinenko } 16