aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-02-20 06:25:36 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-02-20 06:25:36 +0000
commit4318fc5e1e44f355ae117dcac385f1718d971e90 (patch)
tree53a20b6aac65f693a9218367060c7a667b689e69 /include/llvm/ADT
parent65692c809efa46337bf80f12b1795e785a6e7207 (diff)
downloadexternal_llvm-4318fc5e1e44f355ae117dcac385f1718d971e90.tar.gz
external_llvm-4318fc5e1e44f355ae117dcac385f1718d971e90.tar.bz2
external_llvm-4318fc5e1e44f355ae117dcac385f1718d971e90.zip
Rename llvm::Optional<T>::Reset to 'reset' as per LLVM naming conventions.
Code review feedback on r175580 from Jordan Rose. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/Optional.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h
index cc6065c062..e55ad797c2 100644
--- a/include/llvm/ADT/Optional.h
+++ b/include/llvm/ADT/Optional.h
@@ -62,13 +62,13 @@ public:
Optional &operator=(const Optional &O) {
if (!O)
- Reset();
+ reset();
else
*this = *O;
return *this;
}
- void Reset() {
+ void reset() {
if (hasVal) {
(*this)->~T();
hasVal = false;
@@ -76,7 +76,7 @@ public:
}
~Optional() {
- Reset();
+ reset();
}
const T* getPointer() const { assert(hasVal); return reinterpret_cast<const T*>(storage.buffer); }