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

Unified Diff: src/IceGlobalContext.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/IceConverter.h ('k') | src/IceInst.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index a21392e8b23d3af5bed85e4d1e935e15d004d7fe..b0fd0595e8f28125095e83e4ca19e8fede693724 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -34,6 +34,9 @@ class FuncSigType;
// This class collects rudimentary statistics during translation.
class CodeStats {
+ CodeStats(const CodeStats &) = delete;
+ // CodeStats &operator=(const CodeStats &) = delete;
+
public:
CodeStats()
: InstructionsEmitted(0), RegistersSaved(0), FrameBytes(0), Spills(0),
@@ -65,6 +68,9 @@ private:
// be synchronized, especially the constant pool, the allocator, and
// the output streams.
class GlobalContext {
+ GlobalContext(const GlobalContext &) = delete;
+ GlobalContext &operator=(const GlobalContext &) = delete;
+
public:
GlobalContext(llvm::raw_ostream *OsDump, llvm::raw_ostream *OsEmit,
VerboseMask Mask, TargetArch Arch, OptLevel Opt,
@@ -201,8 +207,6 @@ private:
CodeStats StatsCumulative;
std::vector<TimerStack> Timers;
std::vector<GlobalDeclaration *> GlobalDeclarations;
- GlobalContext(const GlobalContext &) = delete;
- GlobalContext &operator=(const GlobalContext &) = delete;
// Private helpers for mangleName()
typedef llvm::SmallVector<char, 32> ManglerVector;
« no previous file with comments | « src/IceConverter.h ('k') | src/IceInst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698