Lang Hames 9c9d4b9e73 [ORC] Move ostream operator for SymbolStringPtrBase into OrcShared.
This will allow clients outside ORC (e.g. JITLink) to use the operator without
taking a dependence on ORC.
2024-12-04 16:42:32 +11:00

19 lines
621 B
C++

//===------- SymbolStringPool.cpp - SymbolStringPool implementation -------===//
//
// 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/ExecutionEngine/Orc/SymbolStringPool.h"
#include "llvm/Support/raw_ostream.h"
namespace llvm::orc {
raw_ostream &operator<<(raw_ostream &OS, const SymbolStringPtrBase &Sym) {
return OS << Sym.S->first();
}
} // namespace llvm::orc