summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1214860a787c43da421044b399b4c220e163d9b1 (patch)
tree43fb35b8cd9761f4cee7c86a9d2c6dfe792e23f6 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent91697639552c011bb53a9437f567d94ac0f9d197 (diff)
downloadbcm5719-llvm-1214860a787c43da421044b399b4c220e163d9b1.tar.gz
bcm5719-llvm-1214860a787c43da421044b399b4c220e163d9b1.zip
Use StringMap for greater justice!
llvm-svn: 53202
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 3d3a9957bb0..149451b8301 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud