Mercurial > projects > ldc
comparison gen/passes/SimplifyDRuntimeCalls.cpp @ 1553:f55ca8a1598c
Value::getNameStart and Value::getNameLength were removed
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 23 Jul 2009 20:34:35 +0200 |
parents | ed0feda76820 |
children | d6e8d5db259f |
comparison
equal
deleted
inserted
replaced
1552:08c8ef491c97 | 1553:f55ca8a1598c |
---|---|
373 if (Callee == 0 || !Callee->isDeclaration() || | 373 if (Callee == 0 || !Callee->isDeclaration() || |
374 !(Callee->hasExternalLinkage() || Callee->hasDLLImportLinkage())) | 374 !(Callee->hasExternalLinkage() || Callee->hasDLLImportLinkage())) |
375 continue; | 375 continue; |
376 | 376 |
377 // Ignore unknown calls. | 377 // Ignore unknown calls. |
378 const char *CalleeName = Callee->getNameStart(); | |
379 StringMap<LibCallOptimization*>::iterator OMI = | 378 StringMap<LibCallOptimization*>::iterator OMI = |
380 Optimizations.find(CalleeName, CalleeName+Callee->getNameLen()); | 379 Optimizations.find(Callee->getName()); |
381 if (OMI == Optimizations.end()) continue; | 380 if (OMI == Optimizations.end()) continue; |
382 | 381 |
383 DEBUG(errs() << "SimplifyDRuntimeCalls inspecting: " << *CI); | 382 DEBUG(errs() << "SimplifyDRuntimeCalls inspecting: " << *CI); |
384 | 383 |
385 // Set the builder to the instruction after the call. | 384 // Set the builder to the instruction after the call. |