JSSpecCompiler: Refactor CompilerPass to accept TranslationUnitRef

This commit is contained in:
Dan Klishch 2023-09-29 19:43:19 -04:00 committed by Andrew Kaster
commit 61fa00d46c
Notes: sideshowbarker 2024-07-17 08:36:27 +09:00
8 changed files with 48 additions and 13 deletions

View file

@ -33,15 +33,13 @@ private:
};
class GenericASTPass
: public CompilerPass
: public IntraproceduralCompilerPass
, protected RecursiveASTVisitor {
public:
GenericASTPass(FunctionDefinitionRef function)
: CompilerPass(function)
{
}
using IntraproceduralCompilerPass::IntraproceduralCompilerPass;
void run() override;
protected:
void process_function() override;
};
}