Pass StringRef by value.
[oota-llvm.git] / include / llvm / MC / MCStreamer.h
index 4d72f324b91a3417cb796ce2ddbf66802c21cc19..5febed71b0415100793bffd18939531987b3d578 100644 (file)
@@ -155,7 +155,7 @@ namespace llvm {
     ///
     /// This is used to implement assembler directives such as .byte, .ascii,
     /// etc.
-    virtual void EmitBytes(const StringRef &Data) = 0;
+    virtual void EmitBytes(StringRef Data) = 0;
 
     /// EmitValue - Emit the expression @param Value into the output as a native
     /// integer of the given @param Size bytes.