Pass MCSymbols to the helper functions in MCELF.h.
[oota-llvm.git] / include / llvm / MC / StringTableBuilder.h
index 0c58f5c84f6809a488b807e7783bb890a27468ab..897d449254eab4d4d93909b6fe2b8aecb82d9736 100644 (file)
@@ -26,12 +26,13 @@ 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 {
     ELF,
-    WinCOFF
+    WinCOFF,
+    MachO
   };
 
   /// \brief Analyze the strings and build the final table. No more strings can