MCTargetOptions.cpp 1.1 KB

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