Rename HasData to IsRegistered.
[oota-llvm.git] / include / llvm / MC / MCAssembler.h
index 6b6e0dc19c940a6708513898a79ce083b0ab77b0..d335db92d0cd84690fd2a651c25866a477a129a7 100644 (file)
@@ -911,11 +911,11 @@ public:
   }
 
   void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr) {
-    bool New = !Symbol.hasData();
+    bool New = !Symbol.isRegistered();
     if (Created)
       *Created = New;
     if (New) {
-      Symbol.initializeData();
+      Symbol.setIsRegistered(true);
       Symbols.push_back(&Symbol);
     }
   }