summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:27:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:27:49 +0000
commit6f74afea32f6d896858e06aea3ace44733f4240d (patch)
treebdabc3795c056dcdd00d76f4fbf73e825599d7f7 /llvm/lib/Transforms
parentbddf51bc9b4f8b17b24414910aa51a8a16c4efba (diff)
downloadbcm5719-llvm-6f74afea32f6d896858e06aea3ace44733f4240d.tar.gz
bcm5719-llvm-6f74afea32f6d896858e06aea3ace44733f4240d.zip
Get rid of hash_map. Use StringMap instead
llvm-svn: 47373
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
index a8f5a952bf2..f4be9704b7a 100644
--- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -23,7 +23,7 @@
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
-#include "llvm/ADT/hash_map"
+#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Compiler.h"
@@ -172,7 +172,7 @@ public:
reset(M);
bool result = false;
- hash_map<std::string, LibCallOptimization*> OptznMap;
+ StringMap<LibCallOptimization*> OptznMap;
for (LibCallOptimization *Optzn = OptList; Optzn; Optzn = Optzn->getNext())
OptznMap[Optzn->getFunctionName()] = Optzn;
@@ -195,7 +195,7 @@ public:
continue;
// Get the optimization class that pertains to this function
- hash_map<std::string, LibCallOptimization*>::iterator OMI =
+ StringMap<LibCallOptimization*>::iterator OMI =
OptznMap.find(FI->getName());
if (OMI == OptznMap.end()) continue;
OpenPOWER on IntegriCloud