[llvm-branch-commits] [llvm-branch] r89795 - in /llvm/branches/Apple/Zoidberg: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/CodeGen/AsmPrinter/DIE.h lib/CodeGen/AsmPrinter/DwarfDebug.cpp lib/CodeGen/AsmPrinter/DwarfDebug.h

Devang Patel dpatel at apple.com
Tue Nov 24 11:48:13 PST 2009


Author: dpatel
Date: Tue Nov 24 13:48:13 2009
New Revision: 89795

URL: http://llvm.org/viewvc/llvm-project?rev=89795&view=rev
Log:
Merge r89793 from trunk.

Modified:
    llvm/branches/Apple/Zoidberg/include/llvm/CodeGen/AsmPrinter.h
    llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DIE.h
    llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.h

Modified: llvm/branches/Apple/Zoidberg/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/include/llvm/CodeGen/AsmPrinter.h?rev=89795&r1=89794&r2=89795&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/branches/Apple/Zoidberg/include/llvm/CodeGen/AsmPrinter.h Tue Nov 24 13:48:13 2009
@@ -297,7 +297,7 @@
     /// EmitString - Emit a string with quotes and a null terminator.
     /// Special characters are emitted properly.
     /// @verbatim (Eg. '\t') @endverbatim
-    void EmitString(const std::string &String) const;
+    void EmitString(const StringRef String) const;
     void EmitString(const char *String, unsigned Size) const;
 
     /// EmitFile - Emit a .file directive.

Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=89795&r1=89794&r2=89795&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Nov 24 13:48:13 2009
@@ -728,7 +728,7 @@
 /// EmitString - Emit a string with quotes and a null terminator.
 /// Special characters are emitted properly.
 /// \literal (Eg. '\t') \endliteral
-void AsmPrinter::EmitString(const std::string &String) const {
+void AsmPrinter::EmitString(const StringRef String) const {
   EmitString(String.data(), String.size());
 }
 

Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DIE.h?rev=89795&r1=89794&r2=89795&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DIE.h (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DIE.h Tue Nov 24 13:48:13 2009
@@ -277,9 +277,9 @@
   /// DIEString - A string value DIE.
   ///
   class DIEString : public DIEValue {
-    const std::string Str;
+    const StringRef Str;
   public:
-    explicit DIEString(const std::string &S) : DIEValue(isString), Str(S) {}
+    explicit DIEString(const StringRef S) : DIEValue(isString), Str(S) {}
 
     /// EmitValue - Emit string value.
     ///

Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=89795&r1=89794&r2=89795&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Nov 24 13:48:13 2009
@@ -332,7 +332,7 @@
 /// addString - Add a string attribute data and value.
 ///
 void DwarfDebug::addString(DIE *Die, unsigned Attribute, unsigned Form,
-                           const std::string &String) {
+                           const StringRef String) {
   DIEValue *Value = new DIEString(String);
   DIEValues.push_back(Value);
   Die->addValue(Attribute, Form, Value);

Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=89795&r1=89794&r2=89795&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/AsmPrinter/DwarfDebug.h Tue Nov 24 13:48:13 2009
@@ -244,7 +244,7 @@
   /// addString - Add a string attribute data and value.
   ///
   void addString(DIE *Die, unsigned Attribute, unsigned Form,
-                 const std::string &String);
+                 const StringRef Str);
 
   /// addLabel - Add a Dwarf label attribute data and value.
   ///





More information about the llvm-branch-commits mailing list