ELFStub.cpp 867 B

12345678910111213141516171819202122232425262728
  1. //===- ELFStub.cpp --------------------------------------------------------===//
  2. //
  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
  6. //
  7. //===-----------------------------------------------------------------------===/
  8. #include "llvm/InterfaceStub/ELFStub.h"
  9. using namespace llvm;
  10. using namespace llvm::elfabi;
  11. ELFStub::ELFStub(ELFStub const &Stub) {
  12. TbeVersion = Stub.TbeVersion;
  13. Arch = Stub.Arch;
  14. SoName = Stub.SoName;
  15. NeededLibs = Stub.NeededLibs;
  16. Symbols = Stub.Symbols;
  17. }
  18. ELFStub::ELFStub(ELFStub &&Stub) {
  19. TbeVersion = std::move(Stub.TbeVersion);
  20. Arch = std::move(Stub.Arch);
  21. SoName = std::move(Stub.SoName);
  22. NeededLibs = std::move(Stub.NeededLibs);
  23. Symbols = std::move(Stub.Symbols);
  24. }