mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Inline methods which are called only once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5681689795
commit
688da28687
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user