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

Reduce string trashing.

llvm-svn: 100038
This commit is contained in:
Benjamin Kramer 2010-03-31 20:15:45 +00:00
parent 0d11c5907d
commit b67e098ab6

View File

@ -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;
}