Pass StringRef by value.
[oota-llvm.git] / include / llvm / GlobalValue.h
index 7b0de34d9cb6fd5c2dd218efc34d61665219238c..b8d219c7266b6f9e115f7370d3c3fc2d76b749f5 100644 (file)
@@ -90,7 +90,7 @@ public:
   
   bool hasSection() const { return !Section.empty(); }
   const std::string &getSection() const { return Section; }
-  void setSection(const StringRef &S) { Section = S; }
+  void setSection(StringRef S) { Section = S; }
   
   /// If the usage is empty (except transitively dead constants), then this
   /// global value can can be safely deleted since the destructor will