mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-17 19:06:09 +00:00

A search order is a list of VSOs to be searched linearly to find symbols. Each VSO now has a search order that will be used when fixing up definitions in that VSO. Each VSO's search order defaults to just that VSO itself. This is a first step towards removing symbol resolvers from ORC altogether. In practice symbol resolvers tended to be used to implement a search order anyway, sometimes with additional programatic generation of symbols. Now that VSOs support programmatic generation of definitions via fallback generators, search orders provide a cleaner way to achieve the desired effect (while removing a lot of boilerplate). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337593 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
//===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Common utilities for Orc unit tests.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "OrcTestCommon.h"
|
|
|
|
using namespace llvm;
|
|
|
|
const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::FooAddr;
|
|
const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BarAddr;
|
|
const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BazAddr;
|
|
const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::QuxAddr;
|
|
|
|
bool OrcNativeTarget::NativeTargetInitialized = false;
|
|
|
|
ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
|
|
StringRef Name)
|
|
: M(new Module(Name, Context)) {
|
|
if (Triple != "")
|
|
M->setTargetTriple(Triple);
|
|
}
|