mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[JITLink] Delete copy and move constructors for jitlink::Section.
Sections are not movable or copyable.
This commit is contained in:
parent
49d6de165d
commit
d07c567e64
@ -590,6 +590,12 @@ public:
|
|||||||
|
|
||||||
~Section();
|
~Section();
|
||||||
|
|
||||||
|
// Sections are not movable or copyable.
|
||||||
|
Section(const Section &) = delete;
|
||||||
|
Section &operator=(const Section &) = delete;
|
||||||
|
Section(Section &&) = delete;
|
||||||
|
Section &operator=(Section &&) = delete;
|
||||||
|
|
||||||
/// Returns the name of this section.
|
/// Returns the name of this section.
|
||||||
StringRef getName() const { return Name; }
|
StringRef getName() const { return Name; }
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ TEST(LinkGraphTest, AddressAccess) {
|
|||||||
LinkGraph G("foo", Triple("x86_64-apple-darwin"), 8, support::little,
|
LinkGraph G("foo", Triple("x86_64-apple-darwin"), 8, support::little,
|
||||||
getGenericEdgeKindName);
|
getGenericEdgeKindName);
|
||||||
|
|
||||||
auto Sec1 = G.createSection("__data.1", RWFlags);
|
auto &Sec1 = G.createSection("__data.1", RWFlags);
|
||||||
auto &B1 = G.createContentBlock(Sec1, BlockContent, 0x1000, 8, 0);
|
auto &B1 = G.createContentBlock(Sec1, BlockContent, 0x1000, 8, 0);
|
||||||
auto &S1 = G.addDefinedSymbol(B1, 4, "S1", 4, Linkage::Strong, Scope::Default,
|
auto &S1 = G.addDefinedSymbol(B1, 4, "S1", 4, Linkage::Strong, Scope::Default,
|
||||||
false, false);
|
false, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user