Pass StringRef by value.
[oota-llvm.git] / lib / Target / PowerPC / PPCTargetMachine.cpp
index 3371954c30f1acddf4b8ffd5049be4a6a2625224..8079c6e9cc605a418d0fb2f1443feaa4f02f1109 100644 (file)
@@ -20,8 +20,7 @@
 #include "llvm/Support/FormattedStream.h"
 using namespace llvm;
 
-static const MCAsmInfo *createMCAsmInfo(const Target &T,
-                                                const StringRef &TT) {
+static const MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
   Triple TheTriple(TT);
   bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
   if (TheTriple.getOS() == Triple::Darwin)