summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-04-09 17:25:11 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-04-09 17:25:11 +0000
commit561d62280aecff3168097086425a7da0442d0de4 (patch)
tree5defef04f7ba8a9a75ff5dc5aa2f540b460ec684 /lib/CodeGen
parenteb52f86a62db523e3c993686b3ed92c55d59d53c (diff)
Revert r154321, pending more discussion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index 6cf370f79e..db0bd951c1 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -322,11 +322,6 @@ private:
/// Function used for non-object declared property setters.
LazyRuntimeFunction SetStructPropertyFn;
- /// Function called before message sends, when tracing
- LazyRuntimeFunction TraceEnterFn;
- /// Function called after message sends, when tracing
- LazyRuntimeFunction TraceExitFn;
-
/// The version of the runtime that this class targets. Must match the
/// version in the runtime.
int RuntimeVersion;
@@ -773,9 +768,6 @@ CGObjCGNU::CGObjCGNU(CodeGenModule &cgm, unsigned runtimeABIVersion,
SetStructPropertyFn.init(&CGM, "objc_setPropertyStruct", VoidTy, PtrTy, PtrTy,
PtrDiffTy, BoolTy, BoolTy, NULL);
- TraceEnterFn.init(&CGM, "objc_trace_enter", VoidTy, IdTy, SelectorTy, NULL);
- TraceExitFn.init(&CGM, "objc_trace_exit", VoidTy, IdTy, SelectorTy, NULL);
-
// IMP type
llvm::Type *IMPArgs[] = { IdTy, SelectorTy };
IMPTy = llvm::PointerType::getUnqual(llvm::FunctionType::get(IdTy, IMPArgs,
@@ -1220,19 +1212,12 @@ CGObjCGNU::GenerateMessageSend(CodeGenFunction &CGF,
ActualArgs[0] = CallArg(RValue::get(Receiver), ASTIdTy, false);
imp = EnforceType(Builder, imp, MSI.MessengerType);
- if (CGM.getCodeGenOpts().ObjCTrace) {
- Builder.CreateCall2(TraceEnterFn, Receiver, cmd);
- }
llvm::Instruction *call;
RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs,
0, &call);
call->setMetadata(msgSendMDKind, node);
- if (CGM.getCodeGenOpts().ObjCTrace) {
- Builder.CreateCall2(TraceExitFn, Receiver, cmd);
- }
-
if (!isPointerSizedReturn) {
messageBB = CGF.Builder.GetInsertBlock();