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