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

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: Code review feedback and merging master 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
« no previous file with comments | « src/IceInst.h ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTranslator.h
diff --git a/src/IceTranslator.h b/src/IceTranslator.h
index 1f7b358ffe287ce2f8bb0008f67f9bbbf24b2212..05601b260d1d247fbcd42d855ada258d1f443503 100644
--- a/src/IceTranslator.h
+++ b/src/IceTranslator.h
@@ -74,6 +74,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
« no previous file with comments | « src/IceInst.h ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698