summaryrefslogtreecommitdiff
path: root/include/llvm/Support/GetElementPtrTypeIterator.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-21 20:48:15 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-21 20:48:15 +0000
commit63b3afa98460ce38a1c48d3c44ef6edfdaf37b77 (patch)
treec0f475480b9d884ebcd5fce42a6dac1a4ad1831e /include/llvm/Support/GetElementPtrTypeIterator.h
parent14f342978cbd07436388eb7046bca96ada24cb63 (diff)
downloadllvm-63b3afa98460ce38a1c48d3c44ef6edfdaf37b77.tar.gz
llvm-63b3afa98460ce38a1c48d3c44ef6edfdaf37b77.tar.bz2
llvm-63b3afa98460ce38a1c48d3c44ef6edfdaf37b77.tar.xz
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GetElementPtrTypeIterator.h')
-rw-r--r--include/llvm/Support/GetElementPtrTypeIterator.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Support/GetElementPtrTypeIterator.h b/include/llvm/Support/GetElementPtrTypeIterator.h
index 8f6c224a26..846332ecee 100644
--- a/include/llvm/Support/GetElementPtrTypeIterator.h
+++ b/include/llvm/Support/GetElementPtrTypeIterator.h
@@ -1,10 +1,10 @@
//===- llvm/Support/GetElementPtrTypeIterator.h -----------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file implements an iterator for walking through the types indexed by
@@ -42,14 +42,14 @@ namespace llvm {
return I;
}
- bool operator==(const generic_gep_type_iterator& x) const {
+ bool operator==(const generic_gep_type_iterator& x) const {
return OpIt == x.OpIt;
}
bool operator!=(const generic_gep_type_iterator& x) const {
return !operator==(x);
}
- const Type *operator*() const {
+ const Type *operator*() const {
return CurTy;
}
@@ -61,7 +61,7 @@ namespace llvm {
// This is a non-standard operator->. It allows you to call methods on the
// current type directly.
const Type *operator->() const { return operator*(); }
-
+
Value *getOperand() const { return *OpIt; }
generic_gep_type_iterator& operator++() { // Preincrement
@@ -71,11 +71,11 @@ namespace llvm {
CurTy = 0;
}
++OpIt;
- return *this;
+ return *this;
}
generic_gep_type_iterator operator++(int) { // Postincrement
- generic_gep_type_iterator tmp = *this; ++*this; return tmp;
+ generic_gep_type_iterator tmp = *this; ++*this; return tmp;
}
};