summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-07 20:59:31 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-07 20:59:31 +0000
commit667a68b96aad48c053d6678ee5cb6d440072e81a (patch)
treec87be5ea8f6d9fad93caba863baf4a5c5f79ae52 /lib/CodeGen/MachineModuleInfo.cpp
parent0fe9c6e7babb3c0731d9cb864ec498ec4184760f (diff)
downloadllvm-667a68b96aad48c053d6678ee5cb6d440072e81a.tar.gz
llvm-667a68b96aad48c053d6678ee5cb6d440072e81a.tar.bz2
llvm-667a68b96aad48c053d6678ee5cb6d440072e81a.tar.xz
Use StringMap for greater justice!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 3d3a9957bb..149451b830 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -1321,7 +1321,7 @@ const StructType *DISerializer::getTagType(DebugInfoDesc *DD) {
///
Constant *DISerializer::getString(const std::string &String) {
// Check string cache for previous edition.
- Constant *&Slot = StringCache[String.c_str()];
+ Constant *&Slot = StringCache[String];
// Return Constant if previously defined.
if (Slot) return Slot;