mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 11:16:06 +00:00

These source files no longer use Optional<T>, so they do not need to include Optional.h. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
14 lines
505 B
C++
14 lines
505 B
C++
//===- Optional.cpp - Optional values ---------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
llvm::raw_ostream &llvm::operator<<(raw_ostream &OS, std::nullopt_t) {
|
|
return OS << "None";
|
|
}
|