LLVM  10.0.0svn
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
11 using namespace llvm;
13 void MCAsmInfoXCOFF::anchor() {}
16  IsLittleEndian = false;
21  AsciiDirective = nullptr; // not supported
22  AscizDirective = nullptr; // not supported
24  HasDotLGloblDirective = true;
25  Data64bitsDirective = "\t.llong\t";
26  SupportsQuotedNames = false;
27 }
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);
35 }
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
Definition: MCAsmInfo.h:275
This class represents lattice values for constants.
Definition: AllocatorList.h:23
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
const char * Data64bitsDirective
Definition: MCAsmInfo.h:197
bool SupportsQuotedNames
If this is true, symbol names with invalid characters will be printed in quotes.
Definition: MCAsmInfo.h:161
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:70
bool NeedsFunctionDescriptors
Definition: MCAsmInfo.h:400
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
Definition: MCAsmInfo.h:283
const char * AsciiDirective
This directive allows emission of an ascii string with the standard C escape characters embedded into...
Definition: MCAsmInfo.h:183
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition: MCAsmInfo.h:188
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n)...
Definition: MCAsmInfo.h:271
virtual bool isValidUnquotedName(StringRef Name) const
Return true if the identifier Name does not need quotes to be syntactically correct.
Definition: MCAsmInfo.cpp:108
bool UseDotAlignForAlignment
True if .align is to be used for alignment.
Definition: MCAsmInfo.h:170
bool isValidUnquotedName(StringRef Name) const override
Return true if the identifier Name does not need quotes to be syntactically correct.
LLVM_NODISCARD bool equals(StringRef RHS) const
equals - Check for string equality, this is more efficient than compare() when the relative ordering ...
Definition: StringRef.h:174
bool HasDotLGloblDirective
True if we have a .lglobl directive, which is used to emit the information of a static symbol into th...
Definition: MCAsmInfo.h:322
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48