mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-03 15:26:18 +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:
@@ -670,8 +670,8 @@ void LLVMSetGlobalConstant(LLVMValueRef GlobalVar, int IsConstant) {
|
||||
|
||||
LLVMValueRef LLVMAddFunction(LLVMModuleRef M, const char *Name,
|
||||
LLVMTypeRef FunctionTy) {
|
||||
return wrap(new Function(unwrap<FunctionType>(FunctionTy),
|
||||
GlobalValue::ExternalLinkage, Name, unwrap(M)));
|
||||
return wrap(Function::Create(unwrap<FunctionType>(FunctionTy),
|
||||
GlobalValue::ExternalLinkage, Name, unwrap(M)));
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMGetNamedFunction(LLVMModuleRef M, const char *Name) {
|
||||
@@ -864,14 +864,14 @@ LLVMBasicBlockRef LLVMGetPreviousBasicBlock(LLVMBasicBlockRef BB) {
|
||||
}
|
||||
|
||||
LLVMBasicBlockRef LLVMAppendBasicBlock(LLVMValueRef FnRef, const char *Name) {
|
||||
return wrap(new BasicBlock(Name, unwrap<Function>(FnRef)));
|
||||
return wrap(BasicBlock::Create(Name, unwrap<Function>(FnRef)));
|
||||
}
|
||||
|
||||
LLVMBasicBlockRef LLVMInsertBasicBlock(LLVMBasicBlockRef InsertBeforeBBRef,
|
||||
const char *Name) {
|
||||
BasicBlock *InsertBeforeBB = unwrap(InsertBeforeBBRef);
|
||||
return wrap(new BasicBlock(Name, InsertBeforeBB->getParent(),
|
||||
InsertBeforeBB));
|
||||
return wrap(BasicBlock::Create(Name, InsertBeforeBB->getParent(),
|
||||
InsertBeforeBB));
|
||||
}
|
||||
|
||||
void LLVMDeleteBasicBlock(LLVMBasicBlockRef BBRef) {
|
||||
|
Reference in New Issue
Block a user