diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-08-09 15:57:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-14 10:50:44 +0200 |
commit | ba3f356040100482bef7a99ecefff9dab14148b2 (patch) | |
tree | 16ee589396328ec05382814aa51344ae0be1b0fe /src/qml/compiler/qv4isel_moth_p.h | |
parent | 73d9421d1c568ef9e8d0a2b6adae8f8c0e7a097b (diff) |
Move the Param struct out of the Instr union.
The parameter struct was accidentally put in the instruction union. As
it is not an instruction, it should not be part of that union.
Change-Id: Id70619fed50ae606f43f2c1701f28aea0a0baed7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_moth_p.h')
-rw-r--r-- | src/qml/compiler/qv4isel_moth_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4isel_moth_p.h b/src/qml/compiler/qv4isel_moth_p.h index 57fc9644ad..f5fffe729e 100644 --- a/src/qml/compiler/qv4isel_moth_p.h +++ b/src/qml/compiler/qv4isel_moth_p.h @@ -126,7 +126,7 @@ protected: virtual void inplaceMemberOp(V4IR::AluOp oper, V4IR::Temp *source, V4IR::Temp *targetBase, const QString &targetName); private: - Instr::Param binopHelper(V4IR::AluOp oper, V4IR::Expr *leftSource, V4IR::Expr *rightSource, V4IR::Temp *target); + Param binopHelper(V4IR::AluOp oper, V4IR::Expr *leftSource, V4IR::Expr *rightSource, V4IR::Temp *target); struct Instruction { #define MOTH_INSTR_DATA_TYPEDEF(I, FMT) typedef InstrData<Instr::I> I; @@ -136,14 +136,14 @@ private: Instruction(); }; - Instr::Param getParam(V4IR::Expr *e); + Param getParam(V4IR::Expr *e); - Instr::Param getResultParam(V4IR::Temp *result) + Param getResultParam(V4IR::Temp *result) { if (result) return getParam(result); else - return Instr::Param::createTemp(scratchTempIndex()); + return Param::createTemp(scratchTempIndex()); } void simpleMove(V4IR::Move *); |