Remove the old API for preserving LoopInfo and DomInfo

Swift SVN r26377
This commit is contained in:
Nadav Rotem
2015-03-20 22:53:10 +00:00
parent 2781e93d9f
commit bbeee760c2
2 changed files with 1 additions and 58 deletions

View File

@@ -69,24 +69,6 @@ public:
// returns a cached result if available.
SILLoopInfo *getLoopInfo(SILFunction *F);
/// Update the loop information with the passed analysis info.
/// Takes ownership of the analysis info.
void updateAnalysis(SILFunction *F, std::unique_ptr<SILLoopInfo> Info) {
if (LoopInfos.count(F)) {
assert(LoopInfos[F] != Info.get());
delete LoopInfos[F];
}
LoopInfos[F] = Info.release();
}
/// Release ownership of the dominance information for the function. The
/// returned unique_ptr takes ownership of the object.
std::unique_ptr<SILLoopInfo> preserveAnalysis(SILFunction *F) {
assert(LoopInfos.count(F));
std::unique_ptr<SILLoopInfo> Info(LoopInfos[F]);
LoopInfos.erase(F);
return Info;
}
};
} // end namespace swift