-O gen-C++ support for type expressions

This commit is contained in:
Vern Paxson 2025-03-07 09:21:09 -08:00
parent ae62209e78
commit 9f5fba7003
6 changed files with 29 additions and 0 deletions

View file

@ -467,6 +467,16 @@ private:
FuncVal* fv;
};
class TypeConstInfo : public CompoundItemInfo {
public:
TypeConstInfo(CPPCompile* _c, ValPtr v) : CompoundItemInfo(_c, v), tv(v->AsTypeVal()) {}
void InitializerVals(std::vector<std::string>& ivs) const override;
private:
TypeVal* tv;
};
// Initialization information for single attributes and sets of attributes.
class AttrInfo : public CompoundItemInfo {
public: