aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/PredIteratorCache.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:51:36 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:51:36 +0000
commitbc3135e12a3fcd2f7d4bd00b05f591f2a02f1a6a (patch)
tree0b78d06b18ccfef4e1aad7bbbf9b7f02fb90eb3c /include/llvm/Support/PredIteratorCache.h
parentf7656333580979ea1bd5e1325e9b7d5f5b447131 (diff)
downloadexternal_llvm-bc3135e12a3fcd2f7d4bd00b05f591f2a02f1a6a.zip
external_llvm-bc3135e12a3fcd2f7d4bd00b05f591f2a02f1a6a.tar.gz
external_llvm-bc3135e12a3fcd2f7d4bd00b05f591f2a02f1a6a.tar.bz2
Removed trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PredIteratorCache.h')
-rw-r--r--include/llvm/Support/PredIteratorCache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/PredIteratorCache.h b/include/llvm/Support/PredIteratorCache.h
index 9eb7a77..cef9de0 100644
--- a/include/llvm/Support/PredIteratorCache.h
+++ b/include/llvm/Support/PredIteratorCache.h
@@ -31,7 +31,7 @@ namespace llvm {
/// Memory - This is the space that holds cached preds.
BumpPtrAllocator Memory;
public:
-
+
/// GetPreds - Get a cached list for the null-terminated predecessor list of
/// the specified block. This can be used in a loop like this:
/// for (BasicBlock **PI = PredCache->GetPreds(BB); *PI; ++PI)
@@ -41,15 +41,15 @@ namespace llvm {
BasicBlock **GetPreds(BasicBlock *BB) {
BasicBlock **&Entry = BlockToPredsMap[BB];
if (Entry) return Entry;
-
+
SmallVector<BasicBlock*, 32> PredCache(pred_begin(BB), pred_end(BB));
PredCache.push_back(0); // null terminator.
-
+
Entry = Memory.Allocate<BasicBlock*>(PredCache.size());
std::copy(PredCache.begin(), PredCache.end(), Entry);
return Entry;
}
-
+
/// clear - Remove all information.
void clear() {
BlockToPredsMap.clear();