Pass StringRef by value.
[oota-llvm.git] / include / llvm / Pass.h
index 6bef2e79b2a604a44ac49c6ad215f7312c50afff..909ccde86a4e9d2175492a9013d6bcc85ceed964 100644 (file)
@@ -167,7 +167,7 @@ public:
 
   // lookupPassInfo - Return the pass info object for the pass with the given
   // argument string, or null if it is not known.
-  static const PassInfo *lookupPassInfo(const StringRef &Arg);
+  static const PassInfo *lookupPassInfo(StringRef Arg);
 
   /// getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to
   /// get analysis information that might be around, for example to update it.