MCTargetOptions.cpp 990 B

123456789101112131415161718192021222324252627
  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), MCSaveTempLabels(false),
  14. MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false),
  15. ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
  16. PreserveAsmComments(true), Dwarf64(false) {}
  17. StringRef MCTargetOptions::getABIName() const {
  18. return ABIName;
  19. }
  20. StringRef MCTargetOptions::getAssemblyLanguage() const {
  21. return AssemblyLanguage;
  22. }