diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:30:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:30:06 +0000 |
commit | 949a3628024248db01d5b13e03c415e0c88e90e4 (patch) | |
tree | 20016aa1bfe0b2a217ac5c604879bee62f0321ea /lib/VMCore/SymbolTable.cpp | |
parent | c07736a397012499e337c994f7f952b07c709544 (diff) | |
download | llvm-949a3628024248db01d5b13e03c415e0c88e90e4.tar.gz llvm-949a3628024248db01d5b13e03c415e0c88e90e4.tar.bz2 llvm-949a3628024248db01d5b13e03c415e0c88e90e4.tar.xz |
Remove redundant const qualifiers from cast<> expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SymbolTable.cpp')
-rw-r--r-- | lib/VMCore/SymbolTable.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp index 12c87981b8..ddd769d075 100644 --- a/lib/VMCore/SymbolTable.cpp +++ b/lib/VMCore/SymbolTable.cpp @@ -19,7 +19,7 @@ SymbolTable::~SymbolTable() { if (TyPlane != end()) { VarMap &TyP = TyPlane->second; for (VarMap::iterator I = TyP.begin(), E = TyP.end(); I != E; ++I) { - const Type *Ty = cast<const Type>(I->second); + const Type *Ty = cast<Type>(I->second); if (Ty->isAbstract()) // If abstract, drop the reference... cast<DerivedType>(Ty)->removeAbstractTypeUser(this); } @@ -122,7 +122,7 @@ Value *SymbolTable::removeEntry(iterator Plane, type_iterator Entry) { // If we are removing an abstract type, remove the symbol table from it's use // list... if (Ty == Type::TypeTy) { - const Type *T = cast<const Type>(Result); + const Type *T = cast<Type>(Result); if (T->isAbstract()) { #if DEBUG_ABSTYPE std::cerr << "Removing abs type from symtab" << T->getDescription()<<"\n"; @@ -179,7 +179,7 @@ void SymbolTable::insertEntry(const std::string &Name, const Type *VTy, // If we are adding an abstract type, add the symbol table to it's use list. if (VTy == Type::TypeTy) { - const Type *T = cast<const Type>(V); + const Type *T = cast<Type>(V); if (T->isAbstract()) { cast<DerivedType>(T)->addAbstractTypeUser(this); #if DEBUG_ABSTYPE @@ -311,7 +311,7 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType, #if DEBUG_ABSTYPE std::cerr << "Added type " << NewType->getDescription() << "\n"; #endif - cast<const DerivedType>(NewType)->addAbstractTypeUser(this); + cast<DerivedType>(NewType)->addAbstractTypeUser(this); } } } |