1//===- 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;
18  COMMDirectiveAlignmentIsInBytes = false;
19  LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment;
20  UseDotAlignForAlignment = true;
21  AsciiDirective = nullptr; // not supported
22  AscizDirective = nullptr; // not supported
23  NeedsFunctionDescriptors = true;
24  HasDotLGloblDirective = true;
25  Data64bitsDirective = "\t.llong\t";
26  SupportsQuotedNames = false;
27}
28
29bool MCAsmInfoXCOFF::isAcceptableChar(char C) const {
30  // QualName is allowed for a MCSymbolXCOFF, and
31  // QualName contains '[' and ']'.
32  if (C == '[' || C == ']')
33    return true;
34
35  return MCAsmInfo::isAcceptableChar(C);
36}
37