change makeNameProper to take a stringref instead of std::string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-13 04:55:33 +00:00
parent af2a8361e4
commit 1cb75460b6
2 changed files with 10 additions and 9 deletions

View File

@@ -19,6 +19,7 @@
#include <string>
namespace llvm {
class StringRef;
class Type;
class Module;
class Value;
@@ -111,7 +112,7 @@ public:
/// does this for you, so there's no point calling it on the result
/// from getValueName.
///
std::string makeNameProper(const std::string &x,
std::string makeNameProper(StringRef x,
ManglerPrefixTy PrefixTy = Mangler::Default);
/// getNameWithPrefix - Fill OutName with the name of the appropriate prefix