Reapply 101503+101520. These are "obviously correct" [Chris]
authorDale Johannesen <dalej@apple.com>
Sat, 17 Apr 2010 00:08:21 +0000 (00:08 +0000)
committerDale Johannesen <dalej@apple.com>
Sat, 17 Apr 2010 00:08:21 +0000 (00:08 +0000)
and don't cause any problems on Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101584 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InlineCost.h

index 066b94396890972e7d8408872164cde053d2e788..ff1f62b3b6337b99701088851ed98735b5047555 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <cassert>
 #include <climits>
-#include <map>
 #include <vector>
 #include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/ValueMap.h"
 
 namespace llvm {
 
@@ -165,7 +165,7 @@ namespace llvm {
       void analyzeFunction(Function *F);
     };
 
-    std::map<const Function *, FunctionInfo> CachedFunctionInfo;
+    ValueMap<const Function *, FunctionInfo> CachedFunctionInfo;
 
   public: