Get rid of hash_map in llvmc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47374 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvmc/Configuration.cpp b/tools/llvmc/Configuration.cpp
index 8d48d4d..1aa047d 100644
--- a/tools/llvmc/Configuration.cpp
+++ b/tools/llvmc/Configuration.cpp
@@ -609,7 +609,6 @@
++cIt;
delete cd;
}
- Configurations.clear();
}
CompilerDriver::ConfigData*
@@ -627,7 +626,7 @@
result = ReadConfigData(filetype);
// If we got one, cache it
if (result != 0)
- Configurations.insert(std::make_pair(filetype,result));
+ Configurations[filetype] = result;
}
return result; // Might return 0
}