1 //===-- MCAsmInfoDarwin.cpp - Darwin asm properties -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines target asm properties related what form asm statements
11 // should take in general on Darwin-based targets
13 //===----------------------------------------------------------------------===//
15 #include "llvm/MC/MCAsmInfoDarwin.h"
16 #include "llvm/MC/MCContext.h"
17 #include "llvm/MC/MCExpr.h"
18 #include "llvm/MC/MCStreamer.h"
21 void MCAsmInfoDarwin::anchor() { }
23 MCAsmInfoDarwin::MCAsmInfoDarwin() {
24 // Common settings for all Darwin targets.
27 LinkerPrivateGlobalPrefix = "l";
28 HasSingleParameterDotFile = false;
29 HasSubsectionsViaSymbols = true;
31 AlignmentIsInBytes = false;
32 COMMDirectiveAlignmentIsInBytes = false;
33 LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment;
34 InlineAsmStart = " InlineAsm Start";
35 InlineAsmEnd = " InlineAsm End";
38 HasWeakDefDirective = true;
39 WeakRefDirective = "\t.weak_reference ";
40 ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
41 HasMachoZeroFillDirective = true; // Uses .zerofill
42 HasMachoTBSSDirective = true; // Uses .tbss
43 HasStaticCtorDtorReferenceInStaticMode = true;
45 // FIXME: Darwin 10 and newer don't need this.
46 LinkerRequiresNonEmptyDwarfLines = true;
48 // FIXME: Change this once MC is the system assembler.
49 HasAggressiveSymbolFolding = false;
51 HiddenVisibilityAttr = MCSA_PrivateExtern;
52 HiddenDeclarationVisibilityAttr = MCSA_Invalid;
54 // Doesn't support protected visibility.
55 ProtectedVisibilityAttr = MCSA_Invalid;
57 HasDotTypeDotSizeDirective = false;
58 HasNoDeadStrip = true;
60 DwarfUsesRelocationsAcrossSections = false;