You've already forked llvm-project
mirror of
https://github.com/AdaCore/llvm-project.git
synced 2026-02-12 13:52:35 -08:00
[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.
This commit is contained in:
@@ -38,10 +38,6 @@ char LookupTask::ID = 0;
|
||||
RegisterDependenciesFunction NoDependenciesToRegister =
|
||||
RegisterDependenciesFunction();
|
||||
|
||||
raw_ostream &operator<<(raw_ostream &OS, const SymbolStringPtrBase &Sym) {
|
||||
return (OS << Sym.S->first());
|
||||
}
|
||||
|
||||
void MaterializationUnit::anchor() {}
|
||||
|
||||
ResourceTracker::ResourceTracker(JITDylibSP JD) {
|
||||
|
||||
@@ -5,6 +5,7 @@ add_llvm_component_library(LLVMOrcShared
|
||||
OrcError.cpp
|
||||
OrcRTBridge.cpp
|
||||
SimpleRemoteEPCUtils.cpp
|
||||
SymbolStringPool.cpp
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
|
||||
|
||||
|
||||
18
llvm/lib/ExecutionEngine/Orc/Shared/SymbolStringPool.cpp
Normal file
18
llvm/lib/ExecutionEngine/Orc/Shared/SymbolStringPool.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//===------- 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
|
||||
Reference in New Issue
Block a user