[WinEH] Fix xdata generation when no catch object is present
[oota-llvm.git] / include / llvm / MC / MCSymbolizer.h
index 7861efb859ff3dd504a434a2c04735c5e95d9535..20e7b81e733a5f40493a6d194fc367cfb73994f1 100644 (file)
@@ -38,8 +38,8 @@ class raw_ostream;
 /// operands are actually symbolizable, and in what way. I don't think this
 /// information exists right now.
 class MCSymbolizer {
-  MCSymbolizer(const MCSymbolizer &) LLVM_DELETED_FUNCTION;
-  void operator=(const MCSymbolizer &) LLVM_DELETED_FUNCTION;
+  MCSymbolizer(const MCSymbolizer &) = delete;
+  void operator=(const MCSymbolizer &) = delete;
 
 protected:
   MCContext &Ctx;
@@ -49,8 +49,6 @@ public:
   /// \brief Construct an MCSymbolizer, taking ownership of \p RelInfo.
   MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo)
     : Ctx(Ctx), RelInfo(std::move(RelInfo)) {
-    assert(this->RelInfo != nullptr &&
-           "Cannot construct MCSymbolizer without relocation info.");
   }
 
   virtual ~MCSymbolizer();