mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Merge pull request #526 from klickverbot/newclass-signature
Correct signature of _d_newclass runtime call.
This commit is contained in:
commit
e5fe110280
5 changed files with 8 additions and 8 deletions
|
@ -146,6 +146,7 @@ namespace {
|
|||
: TypeInfoArgNr(typeInfoArgNr),
|
||||
SafeToDelete(safeToDelete),
|
||||
ReturnsArray(returnsArray) {}
|
||||
virtual ~FunctionInfo() {}
|
||||
};
|
||||
|
||||
class ArrayFI : public FunctionInfo {
|
||||
|
@ -251,7 +252,7 @@ namespace {
|
|||
}
|
||||
};
|
||||
|
||||
// FunctionInfo for _d_allocclass
|
||||
// FunctionInfo for _d_newclass
|
||||
class AllocClassFI : public FunctionInfo {
|
||||
public:
|
||||
virtual bool analyze(CallSite CS, const Analysis& A) {
|
||||
|
@ -358,7 +359,7 @@ GarbageCollect2Stack::GarbageCollect2Stack()
|
|||
KnownFunctions["_d_allocmemoryT"] = &AllocMemoryT;
|
||||
KnownFunctions["_d_newarrayvT"] = &NewArrayVT;
|
||||
KnownFunctions["_d_newarrayT"] = &NewArrayT;
|
||||
KnownFunctions[_d_allocclass] = &AllocClass;
|
||||
KnownFunctions["_d_newclass"] = &AllocClass;
|
||||
}
|
||||
|
||||
static void RemoveCall(CallSite CS, const Analysis& A) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue