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

Unified Diff: src/IceGlobalContext.h

Issue 830303003: Subzero: Clean up a few areas. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rewrite another loop using reverse_range() Created 5 years, 11 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/IceDefs.h ('k') | src/IceGlobalContext.cpp » ('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 0a0ed75ad7437502fa23336e071136c4d7ca3b2f..1b66294c7e98bf08f7255445036e1ceae37b81e5 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -33,7 +33,7 @@ class FuncSigType;
// This class collects rudimentary statistics during translation.
class CodeStats {
CodeStats(const CodeStats &) = delete;
- // CodeStats &operator=(const CodeStats &) = delete;
+ CodeStats &operator=(const CodeStats &) = default;
public:
CodeStats()
@@ -90,15 +90,6 @@ public:
IceString getTestPrefix() const { return TestPrefix; }
IceString mangleName(const IceString &Name) const;
- // The purpose of HasEmitted is to add a header comment at the
- // beginning of assembly code emission, doing it once per file
- // rather than once per function.
- bool testAndSetHasEmittedFirstMethod() {
- bool HasEmitted = HasEmittedFirstMethod;
- HasEmittedFirstMethod = true;
- return HasEmitted;
- }
-
// Manage Constants.
// getConstant*() functions are not const because they might add
// something to the constant pool.
@@ -214,7 +205,6 @@ private:
const OptLevel Opt;
const IceString TestPrefix;
const ClFlags &Flags;
- bool HasEmittedFirstMethod;
RandomNumberGenerator RNG;
std::unique_ptr<ELFObjectWriter> ObjectWriter;
CodeStats StatsFunction;
« no previous file with comments | « src/IceDefs.h ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698