[lld] r229341 - Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; lld edition.
Aaron Ballman
aaron at aaronballman.com
Sun Feb 15 15:10:06 PST 2015
Author: aaronballman
Date: Sun Feb 15 17:10:05 2015
New Revision: 229341
URL: http://llvm.org/viewvc/llvm-project?rev=229341&view=rev
Log:
Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; lld edition.
Modified:
lld/trunk/include/lld/Core/Instrumentation.h
lld/trunk/include/lld/Driver/Driver.h
lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h
lld/trunk/include/lld/ReaderWriter/LinkerScript.h
Modified: lld/trunk/include/lld/Core/Instrumentation.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Instrumentation.h?rev=229341&r1=229340&r2=229341&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Instrumentation.h (original)
+++ lld/trunk/include/lld/Core/Instrumentation.h Sun Feb 15 17:10:05 2015
@@ -64,8 +64,8 @@ public:
class ScopedTask {
__itt_domain *_domain;
- ScopedTask(const ScopedTask &) LLVM_DELETED_FUNCTION;
- ScopedTask &operator=(const ScopedTask &) LLVM_DELETED_FUNCTION;
+ ScopedTask(const ScopedTask &) = delete;
+ ScopedTask &operator=(const ScopedTask &) = delete;
public:
/// \brief Create a task in Domain \p d named \p s.
Modified: lld/trunk/include/lld/Driver/Driver.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/Driver.h?rev=229341&r1=229340&r2=229341&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/Driver.h (original)
+++ lld/trunk/include/lld/Driver/Driver.h Sun Feb 15 17:10:05 2015
@@ -47,7 +47,7 @@ protected:
raw_ostream &diag = llvm::errs());
private:
- Driver() LLVM_DELETED_FUNCTION;
+ Driver() = delete;
};
/// Driver for "universal" lld tool which can mimic any linker command line
@@ -59,7 +59,7 @@ public:
raw_ostream &diag = llvm::errs());
private:
- UniversalDriver() LLVM_DELETED_FUNCTION;
+ UniversalDriver() = delete;
};
/// Driver for gnu/binutil 'ld' command line options.
@@ -95,7 +95,7 @@ private:
llvm::Triple &triple,
llvm::Triple &baseTriple);
- GnuLdDriver() LLVM_DELETED_FUNCTION;
+ GnuLdDriver() = delete;
};
/// Driver for darwin/ld64 'ld' command line options.
@@ -112,7 +112,7 @@ public:
raw_ostream &diag = llvm::errs());
private:
- DarwinLdDriver() LLVM_DELETED_FUNCTION;
+ DarwinLdDriver() = delete;
};
/// Driver for Windows 'link.exe' command line options
@@ -139,7 +139,7 @@ public:
}
private:
- WinLinkDriver() LLVM_DELETED_FUNCTION;
+ WinLinkDriver() = delete;
};
/// Driver for lld unit tests
@@ -156,7 +156,7 @@ public:
raw_ostream &diag = llvm::errs());
private:
- CoreDriver() LLVM_DELETED_FUNCTION;
+ CoreDriver() = delete;
};
} // end namespace lld
Modified: lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h?rev=229341&r1=229340&r2=229341&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h (original)
+++ lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h Sun Feb 15 17:10:05 2015
@@ -303,7 +303,7 @@ public:
const llvm::StringSet<> &wrapCalls() const { return _wrapCalls; }
private:
- ELFLinkingContext() LLVM_DELETED_FUNCTION;
+ ELFLinkingContext() = delete;
protected:
ELFLinkingContext(llvm::Triple, std::unique_ptr<TargetHandlerBase>);
Modified: lld/trunk/include/lld/ReaderWriter/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/LinkerScript.h?rev=229341&r1=229340&r2=229341&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/LinkerScript.h (original)
+++ lld/trunk/include/lld/ReaderWriter/LinkerScript.h Sun Feb 15 17:10:05 2015
@@ -762,7 +762,7 @@ public:
/// Let's not allow copying of Parser class because it would be expensive
/// to update all the AST pointers to a new buffer.
- Parser(const Parser &instance) LLVM_DELETED_FUNCTION;
+ Parser(const Parser &instance) = delete;
/// Lex and parse the current memory buffer to create a linker script AST.
std::error_code parse();
More information about the llvm-commits
mailing list