summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-18 16:35:57 +0000
committerChris Lattner <sabre@nondot.org>2011-07-18 16:35:57 +0000
commit71fbd6b2286117c64906dbc323b8374dd8046bf1 (patch)
tree26112e67e4b63ff47214091e74ffc2a850c35b85 /llvm/include
parent03f16a09bfce5eee342f22816ccae807fabfcf51 (diff)
downloadbcm5719-llvm-71fbd6b2286117c64906dbc323b8374dd8046bf1.tar.gz
bcm5719-llvm-71fbd6b2286117c64906dbc323b8374dd8046bf1.zip
various cleanups noticed by Frits
llvm-svn: 135396
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/TinyPtrVector.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/ADT/TinyPtrVector.h b/llvm/include/llvm/ADT/TinyPtrVector.h
index 70864b6d0f6..ee86d8bdf70 100644
--- a/llvm/include/llvm/ADT/TinyPtrVector.h
+++ b/llvm/include/llvm/ADT/TinyPtrVector.h
@@ -37,9 +37,9 @@ public:
delete V;
}
- /// empty() - This vector can be empty if it contains no element, or if it
- /// contains a pointer to an empty vector.
bool empty() const {
+ // This vector can be empty if it contains no element, or if it
+ // contains a pointer to an empty vector.
if (Val.isNull()) return true;
if (VecTy *Vec = Val.template dyn_cast<VecTy*>())
return Vec->empty();
@@ -49,9 +49,9 @@ public:
unsigned size() const {
if (empty())
return 0;
- if (Val. template is<EltTy>())
+ if (Val.template is<EltTy>())
return 1;
- return Val. template get<VecTy*>()->size();
+ return Val.template get<VecTy*>()->size();
}
typedef const EltTy *iterator;
@@ -83,9 +83,9 @@ public:
return V;
}
- assert(i < Val. template get<VecTy*>()->size() &&
+ assert(i < Val.template get<VecTy*>()->size() &&
"tinyvector index out of range");
- return (*Val. template get<VecTy*>())[i];
+ return (*Val.template get<VecTy*>())[i];
}
EltTy front() const {
@@ -105,7 +105,7 @@ public:
}
// If we have a single value, convert to a vector.
- if (EltTy V = Val.template dyn_cast<EltTy>()) {
+ if (EltTy V = Val.template dyn_cast<EltTy>()) {
Val = new VecTy();
Val.template get<VecTy*>()->push_back(V);
}
OpenPOWER on IntegriCloud