Mercurial > projects > ldc
comparison gen/asm-x86-32.h @ 1055:5066ba0c9783
Apply [1053] to x86-32 asm as well.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 08 Mar 2009 02:07:53 +0100 |
parents | eb310635d80e |
children | ee310a79e9a1 |
comparison
equal
deleted
inserted
replaced
1054:a3d7288c4473 | 1055:5066ba0c9783 |
---|---|
2016 decl->isVarDeclaration() && | 2016 decl->isVarDeclaration() && |
2017 ( ( operand->baseReg == Reg_EBP && ! sc->func->naked ) || | 2017 ( ( operand->baseReg == Reg_EBP && ! sc->func->naked ) || |
2018 ( operand->baseReg == Reg_ESP && sc->func->naked ) ) ) | 2018 ( operand->baseReg == Reg_ESP && sc->func->naked ) ) ) |
2019 { | 2019 { |
2020 | 2020 |
2021 if ( mode == Mode_Output ) | 2021 e = new AddrExp ( 0, e ); |
2022 { | 2022 e->type = decl->type->pointerTo(); |
2023 e = new AddrExp ( 0, e ); | |
2024 e->type = decl->type->pointerTo(); | |
2025 } | |
2026 | 2023 |
2027 #if !IN_LLVM | 2024 #if !IN_LLVM |
2028 /* DMD uses the same frame offsets for naked functions. */ | 2025 /* DMD uses the same frame offsets for naked functions. */ |
2029 if ( sc->func->naked ) | 2026 if ( sc->func->naked ) |
2030 operand->constDisplacement += 4; | 2027 operand->constDisplacement += 4; |