summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-05 01:46:01 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-05 01:46:01 +0000
commit49687742809b1d5a140f1939f5c621de1e507953 (patch)
treeb8e0a34219b4506ffe1e71791590e20cecfce018 /llvm/lib
parentda95e1375069cc51b1ba10a6ff4ec6ad20dac499 (diff)
downloadbcm5719-llvm-49687742809b1d5a140f1939f5c621de1e507953.tar.gz
bcm5719-llvm-49687742809b1d5a140f1939f5c621de1e507953.zip
Inline methods which are called only once.
llvm-svn: 90640
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetData.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index b5077e4c653..2c1c5e63551 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -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];
}
OpenPOWER on IntegriCloud