diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-31 20:15:45 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-31 20:15:45 +0000 |
commit | 96956ed0ffe6eda57f777c849d3dca250313bad8 (patch) | |
tree | dbbe152a5d49d2f8c86c428d3c17d86ffdc8b91c /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 58ca0a649c241a55b39b207f45f73da65b18ff41 (diff) | |
download | bcm5719-llvm-96956ed0ffe6eda57f777c849d3dca250313bad8.tar.gz bcm5719-llvm-96956ed0ffe6eda57f777c849d3dca250313bad8.zip |
Reduce string trashing.
llvm-svn: 100038
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 302812fefb7..d81c304356d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -92,11 +92,11 @@ public: /// addGlobal - Add a new global entity to the compile unit. /// - void addGlobal(const std::string &Name, DIE *Die) { Globals[Name] = Die; } + void addGlobal(StringRef Name, DIE *Die) { Globals[Name] = Die; } /// addGlobalType - Add a new global type to the compile unit. /// - void addGlobalType(const std::string &Name, DIE *Die) { + void addGlobalType(StringRef Name, DIE *Die) { GlobalTypes[Name] = Die; } |