[llvm-commits] [llvm] r90640 - /llvm/trunk/lib/Target/TargetData.cpp
Bill Wendling
isanbard at gmail.com
Fri Dec 4 17:46:01 PST 2009
Author: void
Date: Fri Dec 4 19:46:01 2009
New Revision: 90640
URL: http://llvm.org/viewvc/llvm-project?rev=90640&view=rev
Log:
Inline methods which are called only once.
Modified:
llvm/trunk/lib/Target/TargetData.cpp
Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=90640&r1=90639&r2=90640&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Fri Dec 4 19:46:01 2009
@@ -368,29 +368,17 @@
}
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];
}
More information about the llvm-commits
mailing list