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 | c6ee8276f3c442b03f40255fd1136dc2b84b54cf (patch) | |
tree | c0dac396fb8fda80d4d63b13d286b0c84b79b59e /lib/Transforms/IPO/SimplifyLibCalls.cpp | |
parent | a27694d7aac1bfcec2b776df460719b4a165a79a (diff) | |
download | llvm-c6ee8276f3c442b03f40255fd1136dc2b84b54cf.tar.gz llvm-c6ee8276f3c442b03f40255fd1136dc2b84b54cf.tar.bz2 llvm-c6ee8276f3c442b03f40255fd1136dc2b84b54cf.tar.xz |
Get rid of hash_map. Use StringMap instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/SimplifyLibCalls.cpp')
-rw-r--r-- | lib/Transforms/IPO/SimplifyLibCalls.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index a8f5a952bf..f4be9704b7 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/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; |