[lld] r233435 - ELF: Remove redundant =delete.

Rui Ueyama ruiu at google.com
Fri Mar 27 15:13:29 PDT 2015


Author: ruiu
Date: Fri Mar 27 17:13:29 2015
New Revision: 233435

URL: http://llvm.org/viewvc/llvm-project?rev=233435&view=rev
Log:
ELF: Remove redundant =delete.

Since we have a (protected) constructor having two parameters,
the default constructor is not defined even if we don't do =delete.

Modified:
    lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h

Modified: lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h?rev=233435&r1=233434&r2=233435&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h (original)
+++ lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h Fri Mar 27 17:13:29 2015
@@ -308,9 +308,6 @@ public:
   script::Sema &linkerScriptSema() { return _linkerScriptSema; }
   const script::Sema &linkerScriptSema() const { return _linkerScriptSema; }
 
-private:
-  ELFLinkingContext() = delete;
-
 protected:
   ELFLinkingContext(llvm::Triple triple,
                     std::unique_ptr<TargetHandlerBase> targetHandler)





More information about the llvm-commits mailing list