Inline methods which are called only once.

llvm-svn: 90640
This commit is contained in:
Bill Wendling 2009-12-05 01:46:01 +00:00
parent da95e13750
commit 4968774280
1 changed files with 3 additions and 15 deletions

View File

@ -368,29 +368,17 @@ public:
}
void InvalidateEntry(const StructType *Ty) {
LayoutInfoTy::iterator I = this->find(Ty);
if (I == this->end()) return;
LayoutInfoTy::iterator I = LayoutInfo.find(Ty);
if (I == LayoutInfo.end()) return;
I->second->~StructLayout();
free(I->second);
this->erase(I);
LayoutInfo.erase(I);
if (Ty->isAbstract())
Ty->removeAbstractTypeUser(this);
}
LayoutInfoTy::iterator end() {
return LayoutInfo.end();
}
LayoutInfoTy::iterator find(const StructType *&Val) {
return LayoutInfo.find(Val);
}
bool erase(LayoutInfoTy::iterator I) {
return LayoutInfo.erase(I);
}
StructLayout *&operator[](const StructType *STy) {
return LayoutInfo[STy];
}