Sean Fertile | f09d54e | 2019-07-09 19:21:01 +0000 | [diff] [blame] | 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 | |
| 11 | using namespace llvm; |
| 12 | |
| 13 | void MCAsmInfoXCOFF::anchor() {} |
| 14 | |
| 15 | MCAsmInfoXCOFF::MCAsmInfoXCOFF() { |
| 16 | IsLittleEndian = false; |
| 17 | HasDotTypeDotSizeDirective = false; |
diggerlin | a2c8cd1 | 2020-04-30 09:53:41 -0400 | [diff] [blame] | 18 | HasDotExternDirective = true; |
Sean Fertile | 942537d | 2019-07-22 19:15:29 +0000 | [diff] [blame] | 19 | COMMDirectiveAlignmentIsInBytes = false; |
David Tenty | 8558aac | 2019-08-08 15:40:35 +0000 | [diff] [blame] | 20 | LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment; |
Xing Xue | ef039a3 | 2019-08-25 15:17:25 +0000 | [diff] [blame] | 21 | UseDotAlignForAlignment = true; |
| 22 | AsciiDirective = nullptr; // not supported |
| 23 | AscizDirective = nullptr; // not supported |
Xiangling Liao | 3b808fb | 2019-09-26 19:38:32 +0000 | [diff] [blame] | 24 | NeedsFunctionDescriptors = true; |
| 25 | HasDotLGloblDirective = true; |
Xing Xue | ef039a3 | 2019-08-25 15:17:25 +0000 | [diff] [blame] | 26 | Data64bitsDirective = "\t.llong\t"; |
Xiangling Liao | 3b808fb | 2019-09-26 19:38:32 +0000 | [diff] [blame] | 27 | SupportsQuotedNames = false; |
| 28 | } |
| 29 | |
Jason Liu | 0dc0572 | 2019-11-08 09:26:28 -0500 | [diff] [blame] | 30 | bool MCAsmInfoXCOFF::isAcceptableChar(char C) const { |
| 31 | // QualName is allowed for a MCSymbolXCOFF, and |
| 32 | // QualName contains '[' and ']'. |
| 33 | if (C == '[' || C == ']') |
Xiangling Liao | 3b808fb | 2019-09-26 19:38:32 +0000 | [diff] [blame] | 34 | return true; |
| 35 | |
Jason Liu | 0dc0572 | 2019-11-08 09:26:28 -0500 | [diff] [blame] | 36 | return MCAsmInfo::isAcceptableChar(C); |
Sean Fertile | f09d54e | 2019-07-09 19:21:01 +0000 | [diff] [blame] | 37 | } |