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 | 95e4bd81d7ad15cb7610cfdb869e357b3909a313 (patch) | |
tree | 570f10c0e5e230f88f2cedf8f144af1348394f4b | |
parent | fad86b003a839cef40ec8ce8408322f4913368ca (diff) |
avoid an extraneous std::string construction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54875 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ad7b5c3ffe..cf29b5a104 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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 << "@\"\""; |