Hopefully got self-hosted objects fully working

This commit is contained in:
Nathan Braswell
2016-01-31 19:29:08 -05:00
parent f72930beef
commit 447f0c83b1
5 changed files with 47 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ class CGenerator {
public:
CGenerator();
~CGenerator();
void generateCompSet(std::map<std::string, NodeTree<ASTData>*> ASTs, std::string outputName);
int generateCompSet(std::map<std::string, NodeTree<ASTData>*> ASTs, std::string outputName);
std::string generateTypeStruct(NodeTree<ASTData>* from);
bool isUnderNodeWithType(NodeTree<ASTData>* from, ASTType type);
bool isUnderTranslationUnit(NodeTree<ASTData>* from, NodeTree<ASTData>* typeDefinition);