summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-10-10 19:35:46 +0000
committerAndrew Trick <atrick@apple.com>2011-10-10 19:35:46 +0000
commitd52dd324d638ab448b87c7460e3dae15312826d2 (patch)
tree9169ef132154000b20e7c133c58ea2e283c39371 /llvm
parent874c51933757e6e4f7d6d9a49976429568c1e5b1 (diff)
downloadbcm5719-llvm-d52dd324d638ab448b87c7460e3dae15312826d2.tar.gz
bcm5719-llvm-d52dd324d638ab448b87c7460e3dae15312826d2.zip
whitespace
llvm-svn: 141572
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/Statistic.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h
index fda99c6edbc..9bbda986a81 100644
--- a/llvm/include/llvm/ADT/Statistic.h
+++ b/llvm/include/llvm/ADT/Statistic.h
@@ -54,7 +54,7 @@ public:
Value = Val;
return init();
}
-
+
const Statistic &operator++() {
// FIXME: This function and all those that follow carefully use an
// atomic operation to update the value safely in the presence of
@@ -63,41 +63,41 @@ public:
sys::AtomicIncrement(&Value);
return init();
}
-
+
unsigned operator++(int) {
init();
unsigned OldValue = Value;
sys::AtomicIncrement(&Value);
return OldValue;
}
-
+
const Statistic &operator--() {
sys::AtomicDecrement(&Value);
return init();
}
-
+
unsigned operator--(int) {
init();
unsigned OldValue = Value;
sys::AtomicDecrement(&Value);
return OldValue;
}
-
+
const Statistic &operator+=(const unsigned &V) {
sys::AtomicAdd(&Value, V);
return init();
}
-
+
const Statistic &operator-=(const unsigned &V) {
sys::AtomicAdd(&Value, -V);
return init();
}
-
+
const Statistic &operator*=(const unsigned &V) {
sys::AtomicMul(&Value, V);
return init();
}
-
+
const Statistic &operator/=(const unsigned &V) {
sys::AtomicDiv(&Value, V);
return init();
OpenPOWER on IntegriCloud