GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
222 stars 23 forks source link

Add Tor type for object constructors and destructors #195

Closed GabrielDosReis closed 2 years ago

GabrielDosReis commented 2 years ago

Standard C++ does not assign types to constructor or destructor declarations. The IPR, until now, has relied on platform ABI-dependent interpretations of those special functions as regular functions with some ABI-dependent return type. A high level representation of C++ is expected to abstract over those differences. This is the role of this new type Tor class. It is essentially a Function, minus the target() type.