1 //===- MC/MCAsmInfoXCOFF.cpp - XCOFF asm properties ------------ *- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCAsmInfoXCOFF.h"
13 void MCAsmInfoXCOFF::anchor() {}
15 MCAsmInfoXCOFF::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;
29 bool MCAsmInfoXCOFF::isAcceptableChar(char C) const {
30 // QualName is allowed for a MCSymbolXCOFF, and
31 // QualName contains '[' and ']'.
32 if (C == '[' || C == ']')
35 return MCAsmInfo::isAcceptableChar(C);