Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: src/IceTranslator.h

Issue 1837663002: Initial Subzero WASM prototype. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Incorporating review feedback Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698