diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-05 01:46:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-05 01:46:01 +0000 |
commit | 688da28687788f6ae372c5a3176815e7a69d2cda (patch) | |
tree | 9b58d8a42134bca2af30a79faf671993535ca67b /lib/Target/TargetData.cpp | |
parent | 5681689795c36beb83a4be02c13fb0df78a216bc (diff) |
Inline methods which are called only once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index b5077e4c65..2c1c5e6355 100644 --- a/lib/Target/TargetData.cpp +++ b/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]; } |