[llvm-commits] [llvm] r53215 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter.cpp lib/Target/X86/X86ATTAsmPrinter.cpp lib/Target/X86/X86ATTAsmPrinter.h

Chris Lattner clattner at apple.com
Mon Jul 7 23:15:01 PDT 2008


On Jul 7, 2008, at 5:55 PM, Evan Cheng wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=53215&view=rev
> Log:
> Avoid unnecessary string construction during asm printing.

nice

> @@ -351,6 +351,7 @@
>     /// printSuffixedName - This prints a name with preceding
>     /// getPrivateGlobalPrefix and the specified suffix, handling  
> quoted names
>     /// correctly.
> +    void printSuffixedName(const char *Name, const char* Suffix);
>     void printSuffixedName(std::string &Name, const char* Suffix);

Can 'name' in the second one be a const string?

-Chris




More information about the llvm-commits mailing list