summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 10:57:33 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 10:57:33 +0200
commit3fc69fc8eb920d6ce143010d5e7fc5cf191c37d1 (patch)
tree4a0af922d77f797dbe5df582e30f670ce5d921fa
parent6f78d0db3e577b615b0a3cc79b4a87c0a8b94ef2 (diff)
Add a couple of disabled debugging statements in the form processor and compiler.
-rw-r--r--MLKForm.m7
-rw-r--r--MLKLLVMCompiler.mm20
2 files changed, 20 insertions, 7 deletions
diff --git a/MLKForm.m b/MLKForm.m
index 94df172..230df3e 100644
--- a/MLKForm.m
+++ b/MLKForm.m
@@ -47,7 +47,12 @@
LASSIGN (_form, object);
LASSIGN (_context, context);
LASSIGN (_compiler, compiler);
- return [self complete];
+
+ //NSLog (@"Processing: %@", MLKPrintToString(_form));
+ id processed_form = [self complete];
+ //NSLog (@"Processing finished: %@", MLKPrintToString(_form));
+
+ return processed_form;
}
-(id) complete
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 89795b1..bd64136 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -212,6 +212,7 @@ static Constant
NSArray *subforms = [form subforms];
unsigned int i;
+ //NSLog (@"Marking %@.", form);
for (i = 0; i < [subforms count]; i++)
{
MLKForm *subform = [subforms objectAtIndex:i];
@@ -232,6 +233,7 @@ static Constant
}
}
}
+ //NSLog (@"%@ marked.", form);
}
+(Value *) insertSelectorLookup:(NSString *)name
@@ -393,15 +395,20 @@ static Constant
@implementation MLKForm (MLKLLVMCompilation)
-(Value *) processForLLVM
{
- //[_compiler insertTrace:
- // [NSString stringWithFormat:
- // @"Executing: %@", MLKPrintToString(_form)]];
+#if 0
+ [_compiler insertTrace:
+ [NSString stringWithFormat:
+ @"Executing: %@", MLKPrintToString(_form)]];
+#endif
Value *result = [self reallyProcessForLLVM];
- //[_compiler insertTrace:
- // [NSString stringWithFormat:
- // @"Done: %@", MLKPrintToString(_form)]];
+#if 0
+ [_compiler insertTrace:
+ [NSString stringWithFormat:
+ @"Done: %@", MLKPrintToString(_form)]];
+#endif
+
return result;
}
@@ -547,6 +554,7 @@ static Constant
PointerTy);
args.push_back (endmarker);
+ //[_compiler insertTrace:[NSString stringWithFormat:@"Function call: %@.", MLKPrintToString(_head)]];
CallInst *call = builder.CreateCall (functionPtr,
args.begin(),
args.end(),