Add suppport for ConstantExprs of shufflevectors whose result type is not equal to the
[oota-llvm.git] / include / llvm / ADT / StringSet.h
index 3e274f0d5c4c981feb866a5381f2d3a7eb0ae13a..00048361e86f2906b936db48a2d8004de244f2eb 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_ADT_STRINGSET_H
 
 #include "llvm/ADT/StringMap.h"
-
 #include <cassert>
 
 namespace llvm {
@@ -27,12 +26,12 @@ namespace llvm {
   class StringSet : public llvm::StringMap<char, AllocatorTy> {
     typedef llvm::StringMap<char, AllocatorTy> base;
   public:
-    void insert (const std::string& InLang) {
+    bool insert(const std::string& InLang) {
       assert(!InLang.empty());
       const char* KeyStart = &InLang[0];
       const char* KeyEnd = KeyStart + InLang.size();
-      base::insert(llvm::StringMapEntry<char>::
-                   Create(KeyStart, KeyEnd, base::getAllocator(), '+'));
+      return base::insert(llvm::StringMapEntry<char>::
+                          Create(KeyStart, KeyEnd, base::getAllocator(), '+'));
     }
   };
 }