Remove trivial forwarding function.
[oota-llvm.git] / include / llvm / MC / MCAssembler.h
index 61d9c865e185eb20801a2089df78a9fc90b90d98..6b6e0dc19c940a6708513898a79ce083b0ab77b0 100644 (file)
@@ -910,12 +910,11 @@ public:
     return true;
   }
 
-  bool hasSymbolData(const MCSymbol &Symbol) const { return Symbol.hasData(); }
-
   void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr) {
+    bool New = !Symbol.hasData();
     if (Created)
-      *Created = !hasSymbolData(Symbol);
-    if (!hasSymbolData(Symbol)) {
+      *Created = New;
+    if (New) {
       Symbol.initializeData();
       Symbols.push_back(&Symbol);
     }