mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
avoid an extraneous std::string construction
llvm-svn: 54875
This commit is contained in:
parent
c0610874cc
commit
661710bbd1
@ -1141,7 +1141,7 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
const FunctionType *FT = F->getFunctionType();
|
||||
const PAListPtr &Attrs = F->getParamAttrs();
|
||||
printType(F->getReturnType()) << ' ';
|
||||
if (!F->getName().empty())
|
||||
if (F->hasName())
|
||||
PrintLLVMName(Out, F);
|
||||
else
|
||||
Out << "@\"\"";
|
||||
|
Loading…
Reference in New Issue
Block a user