mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
API changes for class Use size reduction, wave 1.
Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,8 +63,8 @@ Module *llvm::CloneModule(const Module *M,
|
||||
// Loop over the functions in the module, making external functions as before
|
||||
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I) {
|
||||
Function *NF =
|
||||
new Function(cast<FunctionType>(I->getType()->getElementType()),
|
||||
GlobalValue::ExternalLinkage, I->getName(), New);
|
||||
Function::Create(cast<FunctionType>(I->getType()->getElementType()),
|
||||
GlobalValue::ExternalLinkage, I->getName(), New);
|
||||
NF->setCallingConv(I->getCallingConv());
|
||||
NF->setParamAttrs(I->getParamAttrs());
|
||||
if (I->hasCollector())
|
||||
|
Reference in New Issue
Block a user