mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
JSSpecCompiler: Refactor CompilerPass
to accept TranslationUnitRef
This commit is contained in:
parent
24682f5dcf
commit
61fa00d46c
8 changed files with 48 additions and 13 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue