mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
4af7ead7bd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220310 91177308-0d34-0410-b5e6-96231b3b80d8
62 lines
1.9 KiB
C++
62 lines
1.9 KiB
C++
//===-- MCAsmInfoDarwin.cpp - Darwin asm properties -------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines target asm properties related what form asm statements
|
|
// should take in general on Darwin-based targets
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/MC/MCAsmInfoDarwin.h"
|
|
#include "llvm/MC/MCContext.h"
|
|
#include "llvm/MC/MCExpr.h"
|
|
#include "llvm/MC/MCStreamer.h"
|
|
using namespace llvm;
|
|
|
|
void MCAsmInfoDarwin::anchor() { }
|
|
|
|
MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
|
// Common settings for all Darwin targets.
|
|
// Syntax:
|
|
LinkerPrivateGlobalPrefix = "l";
|
|
HasSingleParameterDotFile = false;
|
|
HasSubsectionsViaSymbols = true;
|
|
|
|
AlignmentIsInBytes = false;
|
|
COMMDirectiveAlignmentIsInBytes = false;
|
|
LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment;
|
|
InlineAsmStart = " InlineAsm Start";
|
|
InlineAsmEnd = " InlineAsm End";
|
|
|
|
// Directives:
|
|
HasWeakDefDirective = true;
|
|
HasWeakDefCanBeHiddenDirective = true;
|
|
WeakRefDirective = "\t.weak_reference ";
|
|
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
|
HasMachoZeroFillDirective = true; // Uses .zerofill
|
|
HasMachoTBSSDirective = true; // Uses .tbss
|
|
HasStaticCtorDtorReferenceInStaticMode = true;
|
|
|
|
// FIXME: Change this once MC is the system assembler.
|
|
HasAggressiveSymbolFolding = false;
|
|
|
|
HiddenVisibilityAttr = MCSA_PrivateExtern;
|
|
HiddenDeclarationVisibilityAttr = MCSA_Invalid;
|
|
|
|
// Doesn't support protected visibility.
|
|
ProtectedVisibilityAttr = MCSA_Invalid;
|
|
|
|
HasDotTypeDotSizeDirective = false;
|
|
HasNoDeadStrip = true;
|
|
|
|
DwarfUsesRelocationsAcrossSections = false;
|
|
|
|
UseIntegratedAssembler = true;
|
|
SetDirectiveSuppressesReloc = true;
|
|
}
|