1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Avoid extra string copy.

llvm-svn: 29684
This commit is contained in:
Devang Patel 2006-08-14 23:27:36 +00:00
parent 758464bc38
commit 91349ea154

View File

@ -55,8 +55,9 @@ namespace llvm {
LTOLinkageTypes getLinkage() const { return linkage; }
void mayBeNotUsed();
LLVMSymbol (enum LTOLinkageTypes lt, GlobalValue *g, std::string n,
std::string m) : linkage(lt), gv(g), name(n), mangledName(m) {}
LLVMSymbol (enum LTOLinkageTypes lt, GlobalValue *g, const std::string &n,
const std::string &m) : linkage(lt), gv(g), name(n),
mangledName(m) {}
const char *getName() { return name.c_str(); }
const char *getMangledName() { return mangledName.c_str(); }