diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:28:26 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:28:26 +0000 |
commit | 87ab838945609a74bd4757a87dbd2718ed2061ae (patch) | |
tree | b8f73b39dcaff25cbfaf503f47ff2a892240cbe1 /tools/llvmc/Configuration.cpp | |
parent | 05d33ee7e7c61f156d1143ec461309798d9b268b (diff) | |
download | external_llvm-87ab838945609a74bd4757a87dbd2718ed2061ae.zip external_llvm-87ab838945609a74bd4757a87dbd2718ed2061ae.tar.gz external_llvm-87ab838945609a74bd4757a87dbd2718ed2061ae.tar.bz2 |
Get rid of hash_map in llvmc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/Configuration.cpp')
-rw-r--r-- | tools/llvmc/Configuration.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ LLVMC_ConfigDataProvider::~LLVMC_ConfigDataProvider() ++cIt; delete cd; } - Configurations.clear(); } CompilerDriver::ConfigData* @@ -627,7 +626,7 @@ LLVMC_ConfigDataProvider::ProvideConfigData(const std::string& filetype) { 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 } |