Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -2125,14 +2125,6 @@ class Error : Throwable
}
}

/* Used in Exception Handling LSDA tables to 'wrap' C++ type info
* so it can be distinguished from D TypeInfo
*/
class __cpp_type_info_ptr
{
void* ptr; // opaque pointer to C++ RTTI type info
}

extern (C)
{
// from druntime/src/rt/aaA.d
Expand Down Expand Up @@ -2821,8 +2813,6 @@ bool _xopCmp(in void*, in void*)
throw new Error("TypeInfo.compare is not implemented");
}

void __ctfeWrite(scope const(char)[] s) @nogc @safe pure nothrow {}

/******************************************
* Create RTInfo for type T
*/
Expand Down Expand Up @@ -2853,14 +2843,6 @@ template RTInfo(T)
enum immutable(void)* rtinfoNoPointers = null;
enum immutable(void)* rtinfoHasPointers = cast(void*)1;

// Compiler hook into the runtime implementation of array (vector) operations.
template _arrayOp(Args...)
{
import core.internal.array.operations;
alias _arrayOp = arrayOp!Args;
}


// Helper functions

private inout(TypeInfo) getElement(inout TypeInfo value) @trusted pure nothrow
Expand Down Expand Up @@ -3301,3 +3283,19 @@ if (is(Obj : Object))
assert(a >= "hello");
assert(a < "я");
}

// Used in Exception Handling LSDA tables to 'wrap' C++ type info
// so it can be distinguished from D TypeInfo
class __cpp_type_info_ptr
{
void* ptr; // opaque pointer to C++ RTTI type info
}

// Compiler hook into the runtime implementation of array (vector) operations.
template _arrayOp(Args...)
{
import core.internal.array.operations;
alias _arrayOp = arrayOp!Args;
}

void __ctfeWrite(scope const(char)[] s) @nogc @safe pure nothrow {}