diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-27 18:41:18 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-27 18:41:18 +0100 |
| commit | 455e647ee1fa5ef74c3fe67884adad05d56655d0 (patch) | |
| tree | dda6324574e4781c44704dbac70e48e4578c3d3a /src | |
| parent | ac38714b2904190fb3e4cabba54c1994597efe18 (diff) | |
chore: update nectar frontend, add prologue/epilogue back.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc index f395f6c..c78e5e0 100644 --- a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc +++ b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc @@ -1205,12 +1205,12 @@ static CompilerKit::STLString nectar_mangle_name(const CompilerKit::STLString& i /// \brief Generate function prologue static CompilerKit::STLString nectar_generate_prologue() { - return ""; + return "push rbp\nmov rbp, rsp\n"; } /// \brief Generate function epilogue static CompilerKit::STLString nectar_generate_epilogue() { - return ""; + return "pop rbp\n"; } /// \brief Allocate a variable on the stack |
