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

Unified Diff: src/IceRNG.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/IceOperand.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRNG.h
diff --git a/src/IceRNG.h b/src/IceRNG.h
index 9c4eeda7cc456d425102edcb90304f1bd530f152..5f862a8537274cf9f18714a4f47e9e22ff5ea86a 100644
--- a/src/IceRNG.h
+++ b/src/IceRNG.h
@@ -22,14 +22,14 @@
namespace Ice {
class RandomNumberGenerator {
+ RandomNumberGenerator(const RandomNumberGenerator &) = delete;
+ RandomNumberGenerator &operator=(const RandomNumberGenerator &) = delete;
+
public:
RandomNumberGenerator(llvm::StringRef Salt);
uint64_t next(uint64_t Max);
private:
- RandomNumberGenerator(const RandomNumberGenerator &) = delete;
- RandomNumberGenerator &operator=(const RandomNumberGenerator &) = delete;
-
uint64_t State;
};
@@ -37,16 +37,16 @@ private:
// reason for the wrapper class is that we want to keep the
// RandomNumberGenerator interface identical to LLVM's.
class RandomNumberGeneratorWrapper {
+ RandomNumberGeneratorWrapper(const RandomNumberGeneratorWrapper &) = delete;
+ RandomNumberGeneratorWrapper &
+ operator=(const RandomNumberGeneratorWrapper &) = delete;
+
public:
uint64_t next(uint64_t Max) { return RNG.next(Max); }
bool getTrueWithProbability(float Probability);
RandomNumberGeneratorWrapper(RandomNumberGenerator &RNG) : RNG(RNG) {}
private:
- RandomNumberGeneratorWrapper(const RandomNumberGeneratorWrapper &) = delete;
- RandomNumberGeneratorWrapper &
- operator=(const RandomNumberGeneratorWrapper &) = delete;
-
RandomNumberGenerator &RNG;
};
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698