Removed debugging code that shouldn't have been in last commit.

Aside: Testing the two passes from the last commit shows that they provide about a factor of 10 speedup for class messages.
This commit is contained in:
theraven 2010-04-28 14:47:02 +00:00
parent 84b41a8464
commit 60f87bc4ad

View File

@ -61,7 +61,6 @@ namespace
for (SmallVectorImpl<ClassLookup>::iterator i=Lookups.begin(),
e=Lookups.end() ; e!=i ; i++) {
Value *global = M->getGlobalVariable(("_OBJC_CLASS_" + i->second).c_str(), true);
fprintf(stderr, "%s\n", ("_OBJC_CLASS_" + i->second).c_str());
if (global) {
Value *cls = new BitCastInst(global, i->first->getType(), "class", i->first);
i->first->replaceAllUsesWith(cls);