mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[ORC] Rename SPSTargetAddress to SPSExecutorAddress.
Also removes SPSTagTargetAddress, which was accidentally introduced at some point (and never used).
This commit is contained in:
parent
ee95ce8f4b
commit
85a8d3c7b3
@ -43,7 +43,7 @@ public:
|
||||
: EPC(EPC), RegisterFn(RegisterFn) {}
|
||||
|
||||
Error registerDebugObject(sys::MemoryBlock TargetMem) override {
|
||||
return WrapperFunction<void(SPSTargetAddress, uint64_t)>::call(
|
||||
return WrapperFunction<void(SPSExecutorAddress, uint64_t)>::call(
|
||||
EPCCaller(EPC, RegisterFn), pointerToJITTargetAddress(TargetMem.base()),
|
||||
static_cast<uint64_t>(TargetMem.allocatedSize()));
|
||||
}
|
||||
|
@ -173,15 +173,6 @@ public:
|
||||
// Any empty placeholder suitable as a substitute for void when deserializing
|
||||
class SPSEmpty {};
|
||||
|
||||
/// SPS tag type for target addresses.
|
||||
///
|
||||
/// SPSTagTargetAddresses should be serialized as a uint64_t value.
|
||||
class SPSTagTargetAddress;
|
||||
|
||||
template <>
|
||||
class SPSSerializationTraits<SPSTagTargetAddress, uint64_t>
|
||||
: public SPSSerializationTraits<uint64_t, uint64_t> {};
|
||||
|
||||
/// SPS tag type for tuples.
|
||||
///
|
||||
/// A blob tuple should be serialized by serializing each of the elements in
|
||||
@ -201,11 +192,11 @@ template <typename SPSElementTagT> class SPSSequence;
|
||||
/// SPS tag type for strings, which are equivalent to sequences of chars.
|
||||
using SPSString = SPSSequence<char>;
|
||||
|
||||
/// SPS tag type for target addresseses.
|
||||
class SPSTargetAddress {};
|
||||
/// SPS tag type for executor addresseses.
|
||||
class SPSExecutorAddress {};
|
||||
|
||||
template <>
|
||||
class SPSSerializationTraits<SPSTargetAddress, uint64_t>
|
||||
class SPSSerializationTraits<SPSExecutorAddress, uint64_t>
|
||||
: public SPSSerializationTraits<uint64_t, uint64_t> {};
|
||||
|
||||
/// SPS tag type for maps.
|
||||
|
@ -55,14 +55,14 @@ EPCEHFrameRegistrar::Create(ExecutorProcessControl &EPC) {
|
||||
Error EPCEHFrameRegistrar::registerEHFrames(JITTargetAddress EHFrameSectionAddr,
|
||||
size_t EHFrameSectionSize) {
|
||||
|
||||
return WrapperFunction<void(SPSTargetAddress, uint64_t)>::call(
|
||||
return WrapperFunction<void(SPSExecutorAddress, uint64_t)>::call(
|
||||
EPCCaller(EPC, RegisterEHFrameWrapperFnAddr), EHFrameSectionAddr,
|
||||
static_cast<uint64_t>(EHFrameSectionSize));
|
||||
}
|
||||
|
||||
Error EPCEHFrameRegistrar::deregisterEHFrames(
|
||||
JITTargetAddress EHFrameSectionAddr, size_t EHFrameSectionSize) {
|
||||
return WrapperFunction<void(SPSTargetAddress, uint64_t)>::call(
|
||||
return WrapperFunction<void(SPSExecutorAddress, uint64_t)>::call(
|
||||
EPCCaller(EPC, DeregisterEHFrameWrapperFnAddr), EHFrameSectionAddr,
|
||||
static_cast<uint64_t>(EHFrameSectionSize));
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ static void registerJITLoaderGDBImpl(JITTargetAddress Addr, uint64_t Size) {
|
||||
extern "C" orc::shared::detail::CWrapperFunctionResult
|
||||
llvm_orc_registerJITLoaderGDBWrapper(const char *Data, uint64_t Size) {
|
||||
using namespace orc::shared;
|
||||
return WrapperFunction<void(SPSTargetAddress, uint64_t)>::handle(
|
||||
return WrapperFunction<void(SPSExecutorAddress, uint64_t)>::handle(
|
||||
Data, Size, registerJITLoaderGDBImpl)
|
||||
.release();
|
||||
}
|
||||
|
@ -167,14 +167,14 @@ static Error deregisterEHFrameWrapper(JITTargetAddress Addr, uint64_t Size) {
|
||||
|
||||
extern "C" orc::shared::detail::CWrapperFunctionResult
|
||||
llvm_orc_registerEHFrameSectionWrapper(const char *Data, uint64_t Size) {
|
||||
return WrapperFunction<SPSError(SPSTargetAddress, uint64_t)>::handle(
|
||||
return WrapperFunction<SPSError(SPSExecutorAddress, uint64_t)>::handle(
|
||||
Data, Size, registerEHFrameWrapper)
|
||||
.release();
|
||||
}
|
||||
|
||||
extern "C" orc::shared::detail::CWrapperFunctionResult
|
||||
llvm_orc_deregisterEHFrameSectionWrapper(const char *Data, uint64_t Size) {
|
||||
return WrapperFunction<SPSError(SPSTargetAddress, uint64_t)>::handle(
|
||||
return WrapperFunction<SPSError(SPSExecutorAddress, uint64_t)>::handle(
|
||||
Data, Size, deregisterEHFrameWrapper)
|
||||
.release();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user