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 | 648940b9c1e4633dde4aa9728124faa35e7f186e (patch) | |
| tree | 433cb5ed6bb4587730e72d0795e4d624c34e16b7 /lib/CodeGen | |
| parent | d5e281b5661b5843ce7ab1c7c6c431291ae579a0 (diff) | |
| download | external_llvm-648940b9c1e4633dde4aa9728124faa35e7f186e.zip external_llvm-648940b9c1e4633dde4aa9728124faa35e7f186e.tar.gz external_llvm-648940b9c1e4633dde4aa9728124faa35e7f186e.tar.bz2 | |
Reduce string trashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 302812f..d81c304 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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; } |
