mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Removed trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user