mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove more superfluous .str() and replace std::string concatenation with Twine.
Following r233392, http://llvm.org/viewvc/llvm-project?rev=233392&view=rev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,16 +95,15 @@ static ExFunc lookupFunction(const Function *F) {
|
||||
FunctionType *FT = F->getFunctionType();
|
||||
for (unsigned i = 0, e = FT->getNumContainedTypes(); i != e; ++i)
|
||||
ExtName += getTypeID(FT->getContainedType(i));
|
||||
ExtName += "_" + F->getName().str();
|
||||
ExtName += ("_" + F->getName()).str();
|
||||
|
||||
sys::ScopedLock Writer(*FunctionsLock);
|
||||
ExFunc FnPtr = (*FuncNames)[ExtName];
|
||||
if (!FnPtr)
|
||||
FnPtr = (*FuncNames)["lle_X_" + F->getName().str()];
|
||||
FnPtr = (*FuncNames)[("lle_X_" + F->getName()).str()];
|
||||
if (!FnPtr) // Try calling a generic function... if it exists...
|
||||
FnPtr = (ExFunc)(intptr_t)
|
||||
sys::DynamicLibrary::SearchForAddressOfSymbol("lle_X_" +
|
||||
F->getName().str());
|
||||
FnPtr = (ExFunc)(intptr_t)sys::DynamicLibrary::SearchForAddressOfSymbol(
|
||||
("lle_X_" + F->getName()).str());
|
||||
if (FnPtr)
|
||||
ExportedFunctions->insert(std::make_pair(F, FnPtr)); // Cache for later
|
||||
return FnPtr;
|
||||
|
Reference in New Issue
Block a user