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

Unified Diff: src/IceTargetLoweringX8632.h

Issue 1257643004: Subzero. Buildable, non-functional TargetLoweringX8664. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes naming bug in IceInstX8632.h Created 5 years, 5 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/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index 1f1d2cb0a2555507fc692c408b6044a93d40c8e4..f89d6ca451c676e72c1b071c2896702cd94f832c 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -38,7 +38,9 @@ public:
static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); }
-protected:
+private:
+ friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>;
+
Operand *createNaClReadTPSrcOperand() {
Constant *Zero = Ctx->getConstantZero(IceType_i32);
return Traits::X86OperandMem::create(Func, IceType_i32, nullptr, Zero,
@@ -47,8 +49,6 @@ protected:
}
private:
jvoung (off chromium) 2015/07/30 21:16:21 This "private:" is already covered by the (new) pr
John 2015/07/31 21:05:54 Done.
- friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>;
-
explicit TargetX8632(Cfg *Func) : TargetX86Base(Func) {}
};
@@ -58,19 +58,20 @@ class TargetDataX8632 final : public TargetDataLowering {
TargetDataX8632 &operator=(const TargetDataX8632 &) = delete;
public:
+ ~TargetDataX8632() override = default;
+
static std::unique_ptr<TargetDataLowering> create(GlobalContext *Ctx) {
- return std::unique_ptr<TargetDataLowering>(new TargetDataX8632(Ctx));
+ return makeUnique<TargetDataX8632>(Ctx);
}
void lowerGlobals(const VariableDeclarationList &Vars,
const IceString &SectionSuffix) override;
void lowerConstants() override;
-protected:
- explicit TargetDataX8632(GlobalContext *Ctx);
-
private:
- ~TargetDataX8632() override = default;
+ ENABLE_MAKE_UNIQUE;
+
+ explicit TargetDataX8632(GlobalContext *Ctx);
template <typename T> static void emitConstantPool(GlobalContext *Ctx);
};
« no previous file with comments | « src/IceInstX86Base.h ('k') | src/IceTargetLoweringX8664.h » ('j') | src/IceTargetLoweringX8664.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698