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:
parent
758464bc38
commit
91349ea154
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user