blob: f8463497093b14ab38f387d43c14491b6ff2fc5b [file] [log] [blame]
Armando Montanez1e4b3702018-12-03 19:30:52 +00001//===- ELFStub.cpp --------------------------------------------------------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Armando Montanez1e4b3702018-12-03 19:30:52 +00006//
7//===-----------------------------------------------------------------------===/
8
9#include "llvm/TextAPI/ELF/ELFStub.h"
10
11using namespace llvm;
12using namespace llvm::elfabi;
13
14ELFStub::ELFStub(ELFStub const &Stub) {
15 TbeVersion = Stub.TbeVersion;
16 Arch = Stub.Arch;
17 SoName = Stub.SoName;
18 NeededLibs = Stub.NeededLibs;
19 Symbols = Stub.Symbols;
20}
21
22ELFStub::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);
28}