mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
Reduce string trashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85ffee2c78
commit
bbb88db993
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user