2009-08-22 22:48:53 +02:00
|
|
|
//===-- MCAsmInfoDarwin.cpp - Darwin asm properties -------------*- C++ -*-===//
|
2008-07-19 15:14:46 +02:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 22:48:53 +02:00
|
|
|
#include "llvm/MC/MCAsmInfoDarwin.h"
|
2011-04-28 18:09:09 +02:00
|
|
|
#include "llvm/MC/MCContext.h"
|
|
|
|
#include "llvm/MC/MCExpr.h"
|
|
|
|
#include "llvm/MC/MCStreamer.h"
|
2008-07-19 15:14:46 +02:00
|
|
|
using namespace llvm;
|
|
|
|
|
2011-12-20 03:50:00 +01:00
|
|
|
void MCAsmInfoDarwin::anchor() { }
|
|
|
|
|
2010-01-20 07:34:14 +01:00
|
|
|
MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
2009-06-19 02:08:39 +02:00
|
|
|
// Common settings for all Darwin targets.
|
|
|
|
// Syntax:
|
|
|
|
GlobalPrefix = "_";
|
|
|
|
PrivateGlobalPrefix = "L";
|
2009-09-16 03:46:41 +02:00
|
|
|
LinkerPrivateGlobalPrefix = "l";
|
2009-06-19 02:08:39 +02:00
|
|
|
AllowQuotesInName = true;
|
|
|
|
HasSingleParameterDotFile = false;
|
2010-01-23 08:21:06 +01:00
|
|
|
HasSubsectionsViaSymbols = true;
|
2009-06-19 02:08:39 +02:00
|
|
|
|
2009-08-12 00:31:42 +02:00
|
|
|
AlignmentIsInBytes = false;
|
2010-01-26 21:21:43 +01:00
|
|
|
COMMDirectiveAlignmentIsInBytes = false;
|
2009-08-12 00:39:40 +02:00
|
|
|
InlineAsmStart = " InlineAsm Start";
|
|
|
|
InlineAsmEnd = " InlineAsm End";
|
2009-08-12 00:31:42 +02:00
|
|
|
|
2009-06-19 02:08:39 +02:00
|
|
|
// Directives:
|
|
|
|
WeakDefDirective = "\t.weak_definition ";
|
|
|
|
WeakRefDirective = "\t.weak_reference ";
|
2009-08-12 00:17:31 +02:00
|
|
|
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
2010-01-19 03:09:44 +01:00
|
|
|
HasMachoZeroFillDirective = true; // Uses .zerofill
|
2010-05-20 02:49:07 +02:00
|
|
|
HasMachoTBSSDirective = true; // Uses .tbss
|
2010-01-19 05:34:02 +01:00
|
|
|
HasStaticCtorDtorReferenceInStaticMode = true;
|
2010-12-04 01:31:13 +01:00
|
|
|
|
2011-10-05 01:26:17 +02:00
|
|
|
CodeBegin = "L$start$code$";
|
|
|
|
DataBegin = "L$start$data$";
|
|
|
|
JT8Begin = "L$start$jt8$";
|
|
|
|
JT16Begin = "L$start$jt16$";
|
|
|
|
JT32Begin = "L$start$jt32$";
|
|
|
|
SupportsDataRegions = true;
|
|
|
|
|
2010-12-04 01:31:13 +01:00
|
|
|
// FIXME: Darwin 10 and newer don't need this.
|
|
|
|
LinkerRequiresNonEmptyDwarfLines = true;
|
2010-12-06 18:27:56 +01:00
|
|
|
|
2010-12-22 22:51:29 +01:00
|
|
|
// FIXME: Change this once MC is the system assembler.
|
|
|
|
HasAggressiveSymbolFolding = false;
|
|
|
|
|
2010-01-23 07:53:23 +01:00
|
|
|
HiddenVisibilityAttr = MCSA_PrivateExtern;
|
2011-02-23 03:27:05 +01:00
|
|
|
HiddenDeclarationVisibilityAttr = MCSA_Invalid;
|
2011-11-29 03:39:58 +01:00
|
|
|
|
2010-01-23 07:53:23 +01:00
|
|
|
// Doesn't support protected visibility.
|
2011-11-29 03:39:58 +01:00
|
|
|
ProtectedVisibilityAttr = MCSA_Invalid;
|
2010-01-23 07:53:23 +01:00
|
|
|
|
2009-08-12 00:31:42 +02:00
|
|
|
HasDotTypeDotSizeDirective = false;
|
2010-01-23 06:51:36 +01:00
|
|
|
HasNoDeadStrip = true;
|
2010-11-19 19:39:33 +01:00
|
|
|
HasSymbolResolver = true;
|
2010-09-01 01:50:19 +02:00
|
|
|
|
2011-05-10 22:35:05 +02:00
|
|
|
DwarfRequiresRelocationForSectionOffset = false;
|
2010-09-02 18:43:44 +02:00
|
|
|
DwarfUsesLabelOffsetForRanges = false;
|
2011-10-27 08:44:11 +02:00
|
|
|
DwarfUsesRelocationsForStringPool = false;
|
2008-07-19 15:14:46 +02:00
|
|
|
}
|