MCTargetOptions.cpp 1018 B

12345678910111213141516171819202122232425262728
  1. //===- lib/MC/MCTargetOptions.cpp - MC Target Options ---------------------===//
  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/MC/MCTargetOptions.h"
  9. #include "llvm/ADT/StringRef.h"
  10. using namespace llvm;
  11. MCTargetOptions::MCTargetOptions()
  12. : MCRelaxAll(false), MCNoExecStack(false), MCFatalWarnings(false),
  13. MCNoWarn(false), MCNoDeprecatedWarn(false),
  14. MCNoTypeCheck(false), MCSaveTempLabels(false),
  15. MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false),
  16. ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
  17. PreserveAsmComments(true), Dwarf64(false) {}
  18. StringRef MCTargetOptions::getABIName() const {
  19. return ABIName;
  20. }
  21. StringRef MCTargetOptions::getAssemblyLanguage() const {
  22. return AssemblyLanguage;
  23. }