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

Unified Diff: src/IceTargetLoweringARM32.h

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 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/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

Powered by Google App Engine
This is Rietveld 408576698