| Index: src/IceTargetLoweringX8632.h
|
| diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
|
| index 577334091288c28cf61b853861cfd2d6287c14d6..3a44b6f567694b2790aa1f3485207aba9f247430 100644
|
| --- a/src/IceTargetLoweringX8632.h
|
| +++ b/src/IceTargetLoweringX8632.h
|
| @@ -581,8 +581,8 @@ class TargetDataX8632 : public TargetDataLowering {
|
| TargetDataX8632 &operator=(const TargetDataX8632 &) = delete;
|
|
|
| public:
|
| - static TargetDataLowering *create(GlobalContext *Ctx) {
|
| - return new TargetDataX8632(Ctx);
|
| + static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) {
|
| + return std::unique_ptr<TargetDataLowering>(new TargetDataX8632(Ctx));
|
| }
|
|
|
| void lowerGlobals(std::unique_ptr<VariableDeclarationList> Vars) const final;
|
| @@ -597,6 +597,23 @@ private:
|
| template <typename T> static void emitConstantPool(GlobalContext *Ctx);
|
| };
|
|
|
| +class TargetHeaderX8632 : public TargetHeaderLowering {
|
| + TargetHeaderX8632() = delete;
|
| + TargetHeaderX8632(const TargetHeaderX8632 &) = delete;
|
| + TargetHeaderX8632 &operator=(const TargetHeaderX8632 &) = delete;
|
| +
|
| +public:
|
| + static std::unique_ptr<TargetHeaderLowering> create(GlobalContext *Ctx) {
|
| + return std::unique_ptr<TargetHeaderLowering>(new TargetHeaderX8632(Ctx));
|
| + }
|
| +
|
| +protected:
|
| + explicit TargetHeaderX8632(GlobalContext *Ctx);
|
| +
|
| +private:
|
| + ~TargetHeaderX8632() final = default;
|
| +};
|
| +
|
| } // end of namespace Ice
|
|
|
| #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
|
|
|