[llvm-commits] [llvm] r100038 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Mar 31 13:15:45 PDT 2010


Author: d0k
Date: Wed Mar 31 15:15:45 2010
New Revision: 100038

URL: http://llvm.org/viewvc/llvm-project?rev=100038&view=rev
Log:
Reduce string trashing.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=100038&r1=100037&r2=100038&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed Mar 31 15:15:45 2010
@@ -92,11 +92,11 @@
 
   /// addGlobal - Add a new global entity to the compile unit.
   ///
-  void addGlobal(const std::string &Name, DIE *Die) { Globals[Name] = Die; }
+  void addGlobal(StringRef Name, DIE *Die) { Globals[Name] = Die; }
 
   /// addGlobalType - Add a new global type to the compile unit.
   ///
-  void addGlobalType(const std::string &Name, DIE *Die) { 
+  void addGlobalType(StringRef Name, DIE *Die) { 
     GlobalTypes[Name] = Die; 
   }
 





More information about the llvm-commits mailing list