diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-17 07:24:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-17 07:24:08 +0000 |
commit | edceac3861aa60654105109a0ff7b59dc4292f3a (patch) | |
tree | 0f8344c8bc7dfa7b13bce3f33a7a8d698c01f204 | |
parent | 5d1cfa12296b0620ddf9ff259e3aa7a0b87ecfa9 (diff) | |
download | bcm5719-llvm-edceac3861aa60654105109a0ff7b59dc4292f3a.tar.gz bcm5719-llvm-edceac3861aa60654105109a0ff7b59dc4292f3a.zip |
avoid an extraneous std::string construction
llvm-svn: 54875
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index ad7b5c3ffe3..cf29b5a1047 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -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 << "@\"\""; |