Pass StringRef by value.
[oota-llvm.git] / include / llvm / MC / MCExpr.h
index 4318628e5f022e3ce01b88fba2ef26c57db21f91..13d40eca7c968e74266b71109719e1f1a56c4b65 100644 (file)
@@ -120,7 +120,7 @@ public:
   /// @{
 
   static const MCSymbolRefExpr *Create(const MCSymbol *Symbol, MCContext &Ctx);
-  static const MCSymbolRefExpr *Create(const StringRef &Name, MCContext &Ctx);
+  static const MCSymbolRefExpr *Create(StringRef Name, MCContext &Ctx);
 
   /// @}
   /// @name Accessors