xref: /llvm-project/llvm/lib/MC/MCTargetOptions.cpp (revision b38cfced8d6737b5652f9c6240b05cf8c3c6e677)
1 //===- lib/MC/MCTargetOptions.cpp - MC Target Options --------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "llvm/ADT/StringRef.h"
11 #include "llvm/MC/MCTargetOptions.h"
12 
13 namespace llvm {
14 
15 MCTargetOptions::MCTargetOptions()
16     : SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
17       MCFatalWarnings(false), MCNoWarn(false), MCNoDeprecatedWarn(false),
18       MCSaveTempLabels(false),
19       MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false),
20       MCPIECopyRelocations(false), ShowMCEncoding(false),
21       ShowMCInst(false), AsmVerbose(false),
22       PreserveAsmComments(true), DwarfVersion(0), ABIName() {}
23 
24 StringRef MCTargetOptions::getABIName() const {
25   return ABIName;
26 }
27 
28 } // end namespace llvm
29