Remove StringMap::GetOrCreateValue in favor of StringMap::insert
[oota-llvm.git] / include / llvm / MC / StringTableBuilder.h
index 04f127a58cfbd34c556fc2653be0d9ebecb6cbb0..897d449254eab4d4d93909b6fe2b8aecb82d9736 100644 (file)
@@ -26,7 +26,7 @@ public:
   /// copy of s. Can only be used before the table is finalized.
   StringRef add(StringRef s) {
     assert(!isFinalized());
-    return StringIndexMap.GetOrCreateValue(s, 0).getKey();
+    return StringIndexMap.insert(std::make_pair(s, 0)).first->first();
   }
 
   enum Kind {