Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
remove EH table support - no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Sep 27, 2016
1 parent c2e1dc1 commit 60ec39e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rt/sections_elf_shared.d
Expand Up @@ -78,7 +78,7 @@ struct DSO

@property immutable(FuncTable)[] ehTables() const
{
return _ehTables[];
return null;
}

@property inout(void[])[] gcRanges() inout
Expand All @@ -94,7 +94,6 @@ private:
assert(_tlsMod || !_tlsSize);
}

immutable(FuncTable)[] _ehTables;
ModuleGroup _moduleGroup;
Array!(void[]) _gcRanges;
size_t _tlsMod;
Expand Down Expand Up @@ -334,7 +333,6 @@ struct CompilerDSOData
size_t _version; // currently 1
void** _slot; // can be used to store runtime data
immutable(object.ModuleInfo*)* _minfo_beg, _minfo_end; // array of modules in this object file
immutable(rt.deh.FuncTable)* _deh_beg, _deh_end; // array of exception handling data
}

T[] toRange(T)(T* beg, T* end) { return beg[0 .. end - beg]; }
Expand All @@ -360,7 +358,6 @@ extern(C) void _d_dso_registry(CompilerDSOData* data)
*data._slot = pdso; // store backlink in library record

pdso._moduleGroup = ModuleGroup(toRange(data._minfo_beg, data._minfo_end));
pdso._ehTables = toRange(data._deh_beg, data._deh_end);

dl_phdr_info info = void;
findDSOInfoForAddr(data._slot, &info) || assert(0);
Expand Down

0 comments on commit 60ec39e

Please sign in to comment.