[llvm] 2e7365e - [lldb] Set ObjectFile's assignment operator to also be deleted like its copy constructor (#92942)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 15:51:23 PDT 2024
Author: Thomas Fransham
Date: 2024-05-21T15:51:20-07:00
New Revision: 2e7365eabe4dd2a56b0b1b4053a95558c4f4bb97
URL: https://github.com/llvm/llvm-project/commit/2e7365eabe4dd2a56b0b1b4053a95558c4f4bb97
DIFF: https://github.com/llvm/llvm-project/commit/2e7365eabe4dd2a56b0b1b4053a95558c4f4bb97.diff
LOG: [lldb] Set ObjectFile's assignment operator to also be deleted like its copy constructor (#92942)
This will also fix a warning when ObjectFile is dllexport'ed on Windows
for my GSOC project for adding support Clang plugins on windows with
@vgvassilev and @compnerd.
Added:
Modified:
llvm/include/llvm/Object/ObjectFile.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Object/ObjectFile.h b/llvm/include/llvm/Object/ObjectFile.h
index 8c868c7643edc..a50766ccaeb89 100644
--- a/llvm/include/llvm/Object/ObjectFile.h
+++ b/llvm/include/llvm/Object/ObjectFile.h
@@ -302,6 +302,7 @@ class ObjectFile : public SymbolicFile {
public:
ObjectFile() = delete;
ObjectFile(const ObjectFile &other) = delete;
+ ObjectFile &opeartor = (const ObjectFile &other) = delete;
uint64_t getCommonSymbolSize(DataRefImpl Symb) const {
Expected<uint32_t> SymbolFlagsOrErr = getSymbolFlags(Symb);
More information about the llvm-commits
mailing list