diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:27:49 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:27:49 +0000 |
commit | 6f74afea32f6d896858e06aea3ace44733f4240d (patch) | |
tree | bdabc3795c056dcdd00d76f4fbf73e825599d7f7 /llvm/lib/Transforms | |
parent | bddf51bc9b4f8b17b24414910aa51a8a16c4efba (diff) | |
download | bcm5719-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.cpp | 6 |
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; |