blob: a072928269c704c04f6bf4ead35b1ea818bc369a [file] [log] [blame]
Eugene Zelenko4b6ff6b2017-02-10 01:33:54 +00001//===- lib/MC/MCTargetOptions.cpp - MC Target Options ---------------------===//
Evgeniy Stepanov0a951b72014-04-23 11:16:03 +00002//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Evgeniy Stepanov0a951b72014-04-23 11:16:03 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "llvm/MC/MCTargetOptions.h"
Chandler Carruth6bda14b2017-06-06 11:49:48 +000010#include "llvm/ADT/StringRef.h"
Evgeniy Stepanov0a951b72014-04-23 11:16:03 +000011
Eugene Zelenko4b6ff6b2017-02-10 01:33:54 +000012using namespace llvm;
Evgeniy Stepanov0a951b72014-04-23 11:16:03 +000013
Eric Christopher737e0892014-05-15 01:08:00 +000014MCTargetOptions::MCTargetOptions()
15 : SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
Weiming Zhaob38cfce2016-12-05 23:55:13 +000016 MCFatalWarnings(false), MCNoWarn(false), MCNoDeprecatedWarn(false),
Eugene Zelenko4b6ff6b2017-02-10 01:33:54 +000017 MCSaveTempLabels(false), MCUseDwarfDirectory(false),
18 MCIncrementalLinkerCompatible(false), MCPIECopyRelocations(false),
19 ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
20 PreserveAsmComments(true) {}
Eric Christopher6e30cd92015-01-14 00:50:31 +000021
22StringRef MCTargetOptions::getABIName() const {
23 return ABIName;
24}