mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
Get rid of hash_map in llvmc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6ee8276f3
commit
44a2a79f18
@ -609,7 +609,6 @@ LLVMC_ConfigDataProvider::~LLVMC_ConfigDataProvider()
|
|||||||
++cIt;
|
++cIt;
|
||||||
delete cd;
|
delete cd;
|
||||||
}
|
}
|
||||||
Configurations.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CompilerDriver::ConfigData*
|
CompilerDriver::ConfigData*
|
||||||
@ -627,7 +626,7 @@ LLVMC_ConfigDataProvider::ProvideConfigData(const std::string& filetype) {
|
|||||||
result = ReadConfigData(filetype);
|
result = ReadConfigData(filetype);
|
||||||
// If we got one, cache it
|
// If we got one, cache it
|
||||||
if (result != 0)
|
if (result != 0)
|
||||||
Configurations.insert(std::make_pair(filetype,result));
|
Configurations[filetype] = result;
|
||||||
}
|
}
|
||||||
return result; // Might return 0
|
return result; // Might return 0
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#ifndef LLVM_TOOLS_LLVMC_CONFIGDATA_H
|
#ifndef LLVM_TOOLS_LLVMC_CONFIGDATA_H
|
||||||
#define LLVM_TOOLS_LLVMC_CONFIGDATA_H
|
#define LLVM_TOOLS_LLVMC_CONFIGDATA_H
|
||||||
|
|
||||||
|
#include "llvm/ADT/StringMap.h"
|
||||||
#include "CompilerDriver.h"
|
#include "CompilerDriver.h"
|
||||||
#include <llvm/ADT/hash_map>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
/// This class provides the high level interface to the LLVM Compiler Driver.
|
/// This class provides the high level interface to the LLVM Compiler Driver.
|
||||||
@ -52,7 +52,7 @@ namespace llvm {
|
|||||||
/// @{
|
/// @{
|
||||||
private:
|
private:
|
||||||
/// @brief This type is used internally to hold the configuration data.
|
/// @brief This type is used internally to hold the configuration data.
|
||||||
typedef hash_map<std::string,CompilerDriver::ConfigData*> ConfigDataMap;
|
typedef StringMap<CompilerDriver::ConfigData*> ConfigDataMap;
|
||||||
ConfigDataMap Configurations; ///< The cache of configurations
|
ConfigDataMap Configurations; ///< The cache of configurations
|
||||||
sys::Path configDir;
|
sys::Path configDir;
|
||||||
/// @}
|
/// @}
|
||||||
|
Loading…
Reference in New Issue
Block a user