[dragonegg] r174818 - Remove manually inlined code in favour of a recursive function call, no
Duncan Sands
baldrick at free.fr
Sat Feb 9 13:25:30 PST 2013
Author: baldrick
Date: Sat Feb 9 15:25:30 2013
New Revision: 174818
URL: http://llvm.org/viewvc/llvm-project?rev=174818&view=rev
Log:
Remove manually inlined code in favour of a recursive function call, no
functional change.
Modified:
dragonegg/trunk/src/Trees.cpp
Modified: dragonegg/trunk/src/Trees.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Trees.cpp?rev=174818&r1=174817&r2=174818&view=diff
==============================================================================
--- dragonegg/trunk/src/Trees.cpp (original)
+++ dragonegg/trunk/src/Trees.cpp Sat Feb 9 15:25:30 2013
@@ -76,8 +76,7 @@ std::string getDescriptiveName(const_tre
if (DECL_P(t)) {
// If the declaration comes with a name then use it.
if (DECL_NAME(t)) // Always an identifier node.
- return std::string(IDENTIFIER_POINTER(DECL_NAME(t)),
- IDENTIFIER_LENGTH(DECL_NAME(t)));
+ return getDescriptiveName(DECL_NAME(t));
// Use a generic name for function results.
if (isa<RESULT_DECL>(t))
return "<retval>";
More information about the llvm-commits
mailing list