- Configurations.clear();
}
CompilerDriver::ConfigData*
}
CompilerDriver::ConfigData*
result = ReadConfigData(filetype);
// If we got one, cache it
if (result != 0)
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
}
}
return result; // Might return 0
}
#ifndef LLVM_TOOLS_LLVMC_CONFIGDATA_H
#define LLVM_TOOLS_LLVMC_CONFIGDATA_H
#ifndef 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 {
/// This class provides the high level interface to the LLVM Compiler Driver.
namespace llvm {
/// This class provides the high level interface to the LLVM Compiler Driver.
/// @{
private:
/// @brief This type is used internally to hold the configuration data.
/// @{
private:
/// @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
sys::Path configDir;
/// @}
ConfigDataMap Configurations; ///< The cache of configurations
sys::Path configDir;
/// @}