forked from OSchip/llvm-project
Some function stub added for new abi messaging.
llvm-svn: 63691
This commit is contained in:
parent
9888edee10
commit
3d9296e6f5
|
@ -641,7 +641,15 @@ private:
|
||||||
/// protocols. The return value has type ProtocolListPtrTy.
|
/// protocols. The return value has type ProtocolListPtrTy.
|
||||||
llvm::Constant *EmitProtocolList(const std::string &Name,
|
llvm::Constant *EmitProtocolList(const std::string &Name,
|
||||||
ObjCProtocolDecl::protocol_iterator begin,
|
ObjCProtocolDecl::protocol_iterator begin,
|
||||||
ObjCProtocolDecl::protocol_iterator end);
|
ObjCProtocolDecl::protocol_iterator end);
|
||||||
|
|
||||||
|
CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF,
|
||||||
|
QualType ResultType,
|
||||||
|
Selector Sel,
|
||||||
|
llvm::Value *Arg0,
|
||||||
|
QualType Arg0Ty,
|
||||||
|
bool IsSuper,
|
||||||
|
const CallArgList &CallArgs);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CGObjCNonFragileABIMac(CodeGen::CodeGenModule &cgm);
|
CGObjCNonFragileABIMac(CodeGen::CodeGenModule &cgm);
|
||||||
|
@ -653,8 +661,7 @@ public:
|
||||||
Selector Sel,
|
Selector Sel,
|
||||||
llvm::Value *Receiver,
|
llvm::Value *Receiver,
|
||||||
bool IsClassMessage,
|
bool IsClassMessage,
|
||||||
const CallArgList &CallArgs)
|
const CallArgList &CallArgs);
|
||||||
{return RValue::get(0);}
|
|
||||||
|
|
||||||
virtual CodeGen::RValue
|
virtual CodeGen::RValue
|
||||||
GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
|
GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
|
||||||
|
@ -4269,6 +4276,32 @@ LValue CGObjCNonFragileABIMac::EmitObjCValueForIvar(
|
||||||
return LV;
|
return LV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
|
||||||
|
CodeGen::CodeGenFunction &CGF,
|
||||||
|
QualType ResultType,
|
||||||
|
Selector Sel,
|
||||||
|
llvm::Value *Arg0,
|
||||||
|
QualType Arg0Ty,
|
||||||
|
bool IsSuper,
|
||||||
|
const CallArgList &CallArgs) {
|
||||||
|
return RValue::get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Generate code for a message send expression in the nonfragile abi.
|
||||||
|
CodeGen::RValue CGObjCNonFragileABIMac::GenerateMessageSend(
|
||||||
|
CodeGen::CodeGenFunction &CGF,
|
||||||
|
QualType ResultType,
|
||||||
|
Selector Sel,
|
||||||
|
llvm::Value *Receiver,
|
||||||
|
bool IsClassMessage,
|
||||||
|
const CallArgList &CallArgs) {
|
||||||
|
llvm::Value *Arg0 =
|
||||||
|
CGF.Builder.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy, "tmp");
|
||||||
|
return EmitMessageSend(CGF, ResultType, Sel,
|
||||||
|
Arg0, CGF.getContext().getObjCIdType(),
|
||||||
|
false, CallArgs);
|
||||||
|
}
|
||||||
|
|
||||||
/* *** */
|
/* *** */
|
||||||
|
|
||||||
CodeGen::CGObjCRuntime *
|
CodeGen::CGObjCRuntime *
|
||||||
|
|
Loading…
Reference in New Issue