diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 23:48:37 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 23:48:37 +0000 |
commit | b1c9317bb416944ff2b491b20ca28e2241a5f51f (patch) | |
tree | cf2fc5d20be5053bf0ca3ac2f4432d612701ef47 /llvm/lib/VMCore/SymbolTable.cpp | |
parent | c88330ad137fc6e1210a6533e0686d5afd77c3fd (diff) | |
download | bcm5719-llvm-b1c9317bb416944ff2b491b20ca28e2241a5f51f.tar.gz bcm5719-llvm-b1c9317bb416944ff2b491b20ca28e2241a5f51f.zip |
Remove trailing whitespace
llvm-svn: 21427
Diffstat (limited to 'llvm/lib/VMCore/SymbolTable.cpp')
-rw-r--r-- | llvm/lib/VMCore/SymbolTable.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp index 0881c418969..3290fbd37a7 100644 --- a/llvm/lib/VMCore/SymbolTable.cpp +++ b/llvm/lib/VMCore/SymbolTable.cpp @@ -1,11 +1,11 @@ //===-- SymbolTable.cpp - Implement the SymbolTable class -----------------===// -// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and revised by Reid -// Spencer. It is distributed under the University of Illinois Open Source +// Spencer. It is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // This file implements the SymbolTable class for the VMCore library. @@ -31,7 +31,7 @@ SymbolTable::~SymbolTable() { cast<DerivedType>(TI->second)->removeAbstractTypeUser(this); } - // TODO: FIXME: BIG ONE: This doesn't unreference abstract types for the + // TODO: FIXME: BIG ONE: This doesn't unreference abstract types for the // planes that could still have entries! #ifndef NDEBUG // Only do this in -g mode... @@ -45,7 +45,7 @@ SymbolTable::~SymbolTable() { LeftoverValues = false; } } - + assert(LeftoverValues && "Values remain in symbol table!"); #endif } @@ -194,7 +194,7 @@ void SymbolTable::insertEntry(const std::string &Name, const Type *VTy, #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Inserting definition: " << Name << ": " + std::cerr << " Inserting definition: " << Name << ": " << VTy->getDescription() << "\n"; #endif @@ -243,7 +243,7 @@ void SymbolTable::insert(const std::string& Name, const Type* T) { #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Inserting type: " << UniqueName << ": " + std::cerr << " Inserting type: " << UniqueName << ": " << T->getDescription() << "\n"; #endif @@ -282,7 +282,7 @@ bool SymbolTable::strip() { remove(TI++); RemovedSymbol = true; } - + return RemovedSymbol; } @@ -299,7 +299,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType, plane_iterator NewTypeIt = pmap.find(NewType); if (NewTypeIt == pmap.end()) { // If no plane exists, add one NewTypeIt = pmap.insert(make_pair(NewType, ValueMap())).first; - + if (NewType->isAbstract()) { cast<DerivedType>(NewType)->addAbstractTypeUser(this); #if DEBUG_ABSTYPE @@ -338,7 +338,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType, // Ok we have two external global values. Make all uses of the new // one use the old one... NewGV->uncheckedReplaceAllUsesWith(ExistGV); - + // Update NewGV's name, we're about the remove it from the symbol // table. NewGV->Name = ""; @@ -387,7 +387,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType, std::cerr << "Removing type " << OldType->getDescription() << "\n"; #endif OldType->removeAbstractTypeUser(this); - + I->second = (Type*)NewType; // TODO FIXME when types aren't const if (NewType->isAbstract()) { #if DEBUG_ABSTYPE |