mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-07 00:06:55 +02:00
Remove DMDV1 and DMDV2.
This commit is contained in:
@@ -28,11 +28,7 @@ IRLandingPadInfo::IRLandingPadInfo(Catch* catchstmt_, llvm::BasicBlock* end_) :
|
||||
catchType->codegen(Type::sir);
|
||||
|
||||
if(catchstmt->var) {
|
||||
#if DMDV2
|
||||
if(!catchstmt->var->nestedrefs.dim) {
|
||||
#else
|
||||
if(!catchstmt->var->nestedref) {
|
||||
#endif
|
||||
gIR->func()->gen->landingPadInfo.getExceptionStorage();
|
||||
}
|
||||
}
|
||||
@@ -56,11 +52,7 @@ void IRLandingPadInfo::toIR()
|
||||
if(catchstmt->var) {
|
||||
// use the same storage for all exceptions that are not accessed in
|
||||
// nested functions
|
||||
#if DMDV2
|
||||
if(!catchstmt->var->nestedrefs.dim) {
|
||||
#else
|
||||
if(!catchstmt->var->nestedref) {
|
||||
#endif
|
||||
assert(!catchstmt->var->ir.irLocal);
|
||||
catchstmt->var->ir.irLocal = new IrLocal(catchstmt->var);
|
||||
LLValue* catch_var = gIR->func()->gen->landingPadInfo.getExceptionStorage();
|
||||
|
||||
Reference in New Issue
Block a user