Chromium Code Reviews| Index: src/IceTargetLoweringARM32.h |
| diff --git a/src/IceTargetLoweringARM32.h b/src/IceTargetLoweringARM32.h |
| index 53c98951993af7a4d08d0d09230877f74bf250fb..61a5df700a924731d76e3bce6d526f61db551360 100644 |
| --- a/src/IceTargetLoweringARM32.h |
| +++ b/src/IceTargetLoweringARM32.h |
| @@ -324,6 +324,25 @@ private: |
| template <typename T> static void emitConstantPool(GlobalContext *Ctx); |
| }; |
| +class TargetHeaderARM32 : public TargetHeaderLowering { |
|
John
2015/06/05 22:28:30
Maybe the class should be final, and then you don'
jvoung (off chromium)
2015/06/08 22:21:10
Is that the preferred style?
I could only find "E
John
2015/06/08 23:22:26
There's very little difference in marking a class
jvoung (off chromium)
2015/06/11 22:12:32
Ah, my original worry was if you rename ReturnRegi
|
| + TargetHeaderARM32() = delete; |
| + TargetHeaderARM32(const TargetHeaderARM32 &) = delete; |
| + TargetHeaderARM32 &operator=(const TargetHeaderARM32 &) = delete; |
| + |
| +public: |
| + static TargetHeaderLowering *create(GlobalContext *Ctx) { |
| + return new TargetHeaderARM32(Ctx); |
|
John
2015/06/05 22:28:29
why not returning a
std::unique_ptr<TargetHeaderL
Jim Stichnoth
2015/06/08 20:23:43
I also think that sounds reasonable, here and for
jvoung (off chromium)
2015/06/08 22:21:10
Done.
|
| + } |
| + |
| + void lower() final; |
| + |
| +protected: |
| + explicit TargetHeaderARM32(GlobalContext *Ctx); |
| + |
| +private: |
| + ~TargetHeaderARM32() final {} |
|
John
2015/06/05 22:28:30
= default; instead of {}?
jvoung (off chromium)
2015/06/08 22:21:10
Done.
|
| +}; |
| + |
| } // end of namespace Ice |
| #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H |