mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-01-31 13:52:46 +00:00
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:
parent
84b41a8464
commit
60f87bc4ad
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user