1 //===- ELFStub.cpp --------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===-----------------------------------------------------------------------===/
9 #include "llvm/TextAPI/ELF/ELFStub.h"
12 using namespace llvm::elfabi
;
14 ELFStub::ELFStub(ELFStub
const &Stub
) {
15 TbeVersion
= Stub
.TbeVersion
;
18 NeededLibs
= Stub
.NeededLibs
;
19 Symbols
= Stub
.Symbols
;
22 ELFStub::ELFStub(ELFStub
&&Stub
) {
23 TbeVersion
= std::move(Stub
.TbeVersion
);
24 Arch
= std::move(Stub
.Arch
);
25 SoName
= std::move(Stub
.SoName
);
26 NeededLibs
= std::move(Stub
.NeededLibs
);
27 Symbols
= std::move(Stub
.Symbols
);