[llvm-commits] [llvm] r47373 - /llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp

Anton Korobeynikov asl at math.spbu.ru
Wed Feb 20 03:27:49 PST 2008


Author: asl
Date: Wed Feb 20 05:27:49 2008
New Revision: 47373

URL: http://llvm.org/viewvc/llvm-project?rev=47373&view=rev
Log:
Get rid of hash_map. Use StringMap instead

Modified:
    llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp?rev=47373&r1=47372&r2=47373&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp Wed Feb 20 05:27:49 2008
@@ -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 @@
     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 @@
           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;
         





More information about the llvm-commits mailing list