[llvm] Set ObjectFile's assignment operator to also be deleted like its copy constructor (PR #92942)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 10:42:02 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-binary-utilities
Author: Thomas Fransham (fsfod)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/92942.diff
1 Files Affected:
- (modified) llvm/include/llvm/Object/ObjectFile.h (+1)
``````````diff
diff --git a/llvm/include/llvm/Object/ObjectFile.h b/llvm/include/llvm/Object/ObjectFile.h
index 8c868c7643edc..645829d944d9f 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 operator=(const ObjectFile &other) = delete;
uint64_t getCommonSymbolSize(DataRefImpl Symb) const {
Expected<uint32_t> SymbolFlagsOrErr = getSymbolFlags(Symb);
``````````
</details>
https://github.com/llvm/llvm-project/pull/92942
More information about the llvm-commits
mailing list