[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / lib / MC / MCAsmInfoXCOFF.cpp
blob65fe8848e20fbeab715ddfaffc91abb6f474db3a
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 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCAsmInfoXCOFF.h"
11 using namespace llvm;
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::isValidUnquotedName(StringRef Name) const {
30 // FIXME: Remove this function when we stop using "TOC[TC0]" as a symbol name.
31 if (Name.equals("TOC[TC0]"))
32 return true;
34 return MCAsmInfo::isValidUnquotedName(Name);