diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-15 05:21:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-15 05:21:59 +0000 |
commit | e983082bdb281cace4655e3785bb351f82c2cf0c (patch) | |
tree | 1b91a1b304d3086fa2ff2cdb88610d9d2bba48c4 /llvm/lib/Target/TargetData.cpp | |
parent | 6fb0ccfa0f9d47e8ca025ef68c38da9cb0116d57 (diff) | |
download | bcm5719-llvm-e983082bdb281cace4655e3785bb351f82c2cf0c.tar.gz bcm5719-llvm-e983082bdb281cace4655e3785bb351f82c2cf0c.zip |
remove the InvalidateStructLayoutInfo API, which is dead and unnecessary now
that type refinement is toast.
llvm-svn: 135245
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index b2c4b21f680..17d022a339e 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -329,15 +329,6 @@ public: } } - void InvalidateEntry(const StructType *Ty) { - LayoutInfoTy::iterator I = LayoutInfo.find(Ty); - if (I == LayoutInfo.end()) return; - - I->second->~StructLayout(); - free(I->second); - LayoutInfo.erase(I); - } - StructLayout *&operator[](const StructType *STy) { return LayoutInfo[STy]; } @@ -375,16 +366,6 @@ const StructLayout *TargetData::getStructLayout(const StructType *Ty) const { return L; } -/// InvalidateStructLayoutInfo - TargetData speculatively caches StructLayout -/// objects. If a TargetData object is alive when types are being refined and -/// removed, this method must be called whenever a StructType is removed to -/// avoid a dangling pointer in this cache. -void TargetData::InvalidateStructLayoutInfo(const StructType *Ty) const { - if (!LayoutMap) return; // No cache. - - static_cast<StructLayoutMap*>(LayoutMap)->InvalidateEntry(Ty); -} - std::string TargetData::getStringRepresentation() const { std::string Result; raw_string_ostream OS(Result); |