First iteration of CaptureAnalysis.

Swift SVN r1284
This commit is contained in:
Eli Friedman
2012-03-29 00:24:03 +00:00
parent e17398510a
commit 29f3fca950
13 changed files with 202 additions and 186 deletions

View File

@@ -72,15 +72,6 @@ IRGenModule::~IRGenModule() {
delete &Types;
}
llvm::Constant *IRGenModule::getMemCpyFn() {
if (MemCpyFn) return MemCpyFn;
llvm::Type *types[] = { SizeTy };
MemCpyFn = llvm::Intrinsic::getDeclaration(&Module, llvm::Intrinsic::memcpy,
types);
return MemCpyFn;
}
llvm::Constant *IRGenModule::getAllocFn() {
if (AllocFn) return AllocFn;