Index: src/IceTranslator.h |
diff --git a/src/IceTranslator.h b/src/IceTranslator.h |
index 5e7dfadec342e5eec3242a734e02d7e7de587ebf..17ed3555f8e7652e9508fcc66e6ffc1a4fe7c95c 100644 |
--- a/src/IceTranslator.h |
+++ b/src/IceTranslator.h |
@@ -76,6 +76,20 @@ protected: |
ErrorCode ErrorStatus; |
}; |
+class CfgOptWorkItem final : public OptWorkItem { |
+ CfgOptWorkItem() = delete; |
+ CfgOptWorkItem(const CfgOptWorkItem &) = delete; |
+ CfgOptWorkItem &operator=(const CfgOptWorkItem &) = delete; |
+ |
+public: |
+ CfgOptWorkItem(std::unique_ptr<Cfg> Func) : Func(std::move(Func)) {} |
+ std::unique_ptr<Cfg> getParsedCfg() override { return std::move(Func); } |
+ ~CfgOptWorkItem() override = default; |
+ |
+private: |
+ std::unique_ptr<Ice::Cfg> Func; |
+}; |
+ |
} // end of namespace Ice |
#endif // SUBZERO_SRC_ICETRANSLATOR_H |