Bug 12326 – [IMPLEMENTATION] Move hidden debug switches into a backend-specific struct.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-09T05:06:32Z
Last change time
2022-01-30T23:02:05Z
Keywords
GDC
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2014-03-09T05:06:32Z
There are a number of unknown fields in the mars.h (struct Params) that are only commented with:
// hidden debug switches
Likewise in GDC, we have some of our own additions to this struct that are not in use by DMD or LDC, so I suggest that a new backend specific structure (eg: struct Compiler) that is both unused and transparent to the frontend should replace this.
This would contribute to making the frontend code shared among DMD, GDC, and LDC.