12c01b278SSunho Kim //===---- RedirectionManager.cpp - Redirection manager interface in Orc ---===// 22c01b278SSunho Kim // 32c01b278SSunho Kim // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42c01b278SSunho Kim // See https://llvm.org/LICENSE.txt for license information. 52c01b278SSunho Kim // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 62c01b278SSunho Kim // 72c01b278SSunho Kim //===----------------------------------------------------------------------===// 82c01b278SSunho Kim 92c01b278SSunho Kim #include "llvm/ExecutionEngine/Orc/RedirectionManager.h" 102c01b278SSunho Kim 112c01b278SSunho Kim #define DEBUG_TYPE "orc" 122c01b278SSunho Kim 132c01b278SSunho Kim using namespace llvm; 142c01b278SSunho Kim using namespace llvm::orc; 152c01b278SSunho Kim 162c01b278SSunho Kim void RedirectionManager::anchor() {} 172c01b278SSunho Kim 182c01b278SSunho Kim Error RedirectableSymbolManager::createRedirectableSymbols( 19*f8a2a502SLang Hames ResourceTrackerSP RT, SymbolMap InitialDests) { 202c01b278SSunho Kim auto &JD = RT->getJITDylib(); 21*f8a2a502SLang Hames return JD.define(std::make_unique<RedirectableMaterializationUnit>( 22*f8a2a502SLang Hames *this, std::move(InitialDests)), 232c01b278SSunho Kim RT); 242c01b278SSunho Kim } 25