Fix Path::GetMainExecutable on cygwin, patch by Sam Bishop.
[oota-llvm.git] / tools / llvmc / Configuration.h
index b121f9dcbb90c2f3577707cb4081b2a844f45da8..410e9af77e75b624c7c15a749c33c44124bea4b6 100644 (file)
@@ -2,20 +2,21 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by Reid Spencer and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
 // This file declares the LLVMC_ConfigDataProvider class which implements the
 // generation of ConfigData objects for the CompilerDriver.
 //
-//===------------------------------------------------------------------------===
+//===----------------------------------------------------------------------===//
+
 #ifndef LLVM_TOOLS_LLVMC_CONFIGDATA_H
 #define LLVM_TOOLS_LLVMC_CONFIGDATA_H
 
+#include "llvm/ADT/StringMap.h"
 #include "CompilerDriver.h"
-#include <llvm/ADT/hash_map>
 
 namespace llvm {
   /// This class provides the high level interface to the LLVM Compiler Driver.
@@ -51,7 +52,7 @@ namespace llvm {
     /// @{
     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;
     /// @}