blob: c51cdff59fa0aff080384352fc91371913b5069b [file] [log] [blame]
Sean Fertilef09d54e2019-07-09 19:21:01 +00001//===- MC/MCAsmInfoXCOFF.cpp - XCOFF asm properties ------------ *- C++ -*-===//
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
9#include "llvm/MC/MCAsmInfoXCOFF.h"
10
11using namespace llvm;
12
13void MCAsmInfoXCOFF::anchor() {}
14
15MCAsmInfoXCOFF::MCAsmInfoXCOFF() {
16 IsLittleEndian = false;
17 HasDotTypeDotSizeDirective = false;
Sean Fertile942537d2019-07-22 19:15:29 +000018 COMMDirectiveAlignmentIsInBytes = false;
David Tenty8558aac2019-08-08 15:40:35 +000019 LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment;
Xing Xueef039a32019-08-25 15:17:25 +000020 UseDotAlignForAlignment = true;
21 AsciiDirective = nullptr; // not supported
22 AscizDirective = nullptr; // not supported
Xiangling Liao3b808fb2019-09-26 19:38:32 +000023 NeedsFunctionDescriptors = true;
24 HasDotLGloblDirective = true;
Xing Xueef039a32019-08-25 15:17:25 +000025 Data64bitsDirective = "\t.llong\t";
Xiangling Liao3b808fb2019-09-26 19:38:32 +000026 SupportsQuotedNames = false;
27}
28
Jason Liu0dc05722019-11-08 09:26:28 -050029bool MCAsmInfoXCOFF::isAcceptableChar(char C) const {
30 // QualName is allowed for a MCSymbolXCOFF, and
31 // QualName contains '[' and ']'.
32 if (C == '[' || C == ']')
Xiangling Liao3b808fb2019-09-26 19:38:32 +000033 return true;
34
Jason Liu0dc05722019-11-08 09:26:28 -050035 return MCAsmInfo::isAcceptableChar(C);
Sean Fertilef09d54e2019-07-09 19:21:01 +000036}