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

Unified Diff: src/IceTargetLowering.h

Issue 656123003: Subzero: Class definition cleanup. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes for Karl Created 6 years, 2 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/IceRNG.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index bbda1f8b0b36fa8e1a62131282cd0d63877bb942..6e172a2952b444f0260e4c33b87224e3a9cb0983 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -35,6 +35,9 @@ class Assembler;
// when inserting new instructions in order to track whether variables
// are used as single-block or multi-block.
class LoweringContext {
+ LoweringContext(const LoweringContext &) = delete;
+ LoweringContext &operator=(const LoweringContext &) = delete;
+
public:
LoweringContext() : Node(NULL) {}
~LoweringContext() {}
@@ -86,11 +89,12 @@ private:
void skipDeleted(InstList::iterator &I) const;
void advanceForward(InstList::iterator &I) const;
void advanceBackward(InstList::iterator &I) const;
- LoweringContext(const LoweringContext &) = delete;
- LoweringContext &operator=(const LoweringContext &) = delete;
};
class TargetLowering {
+ TargetLowering(const TargetLowering &) = delete;
+ TargetLowering &operator=(const TargetLowering &) = delete;
+
public:
static TargetLowering *createLowering(TargetArch Target, Cfg *Func);
static Assembler *createAssembler(TargetArch Target, Cfg *Func);
@@ -233,16 +237,16 @@ protected:
// natural location, as arguments are pushed for a function call.
int32_t StackAdjustment;
LoweringContext Context;
-
-private:
- TargetLowering(const TargetLowering &) = delete;
- TargetLowering &operator=(const TargetLowering &) = delete;
};
// TargetGlobalInitLowering is used for "lowering" global
// initializers. It is separated out from TargetLowering because it
// does not require a Cfg.
class TargetGlobalInitLowering {
+ TargetGlobalInitLowering(const TargetGlobalInitLowering &) = delete;
+ TargetGlobalInitLowering &operator=(const TargetGlobalInitLowering &) =
+ delete;
+
public:
static TargetGlobalInitLowering *createLowering(TargetArch Target,
GlobalContext *Ctx);
@@ -253,11 +257,6 @@ public:
protected:
TargetGlobalInitLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
GlobalContext *Ctx;
-
-private:
- TargetGlobalInitLowering(const TargetGlobalInitLowering &) = delete;
- TargetGlobalInitLowering &operator=(const TargetGlobalInitLowering &) =
- delete;
};
} // end of namespace Ice
« no previous file with comments | « src/IceRNG.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698