From 2928c83b010f7cfdb0f819199d806f6942a7d995 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 6 Nov 2009 10:58:06 +0000 Subject: Pass StringRef by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86251 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Pass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Pass.h') diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 6bef2e79b2..909ccde86a 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -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() - Subclasses use this function to /// get analysis information that might be around, for example to update it. -- cgit v1.2.3