freebsd-nq/lib/MC/MCAsmInfoDarwin.cpp

48 lines
1.5 KiB
C++
Raw Normal View History

2009-10-14 17:57:32 +00:00
//===-- 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"
using namespace llvm;
MCAsmInfoDarwin::MCAsmInfoDarwin() {
// Common settings for all Darwin targets.
// Syntax:
GlobalPrefix = "_";
PrivateGlobalPrefix = "L";
LinkerPrivateGlobalPrefix = "l";
AllowQuotesInName = true;
HasSingleParameterDotFile = false;
2010-01-23 11:09:33 +00:00
HasSubsectionsViaSymbols = true;
2009-10-14 17:57:32 +00:00
AlignmentIsInBytes = false;
2010-02-16 09:30:23 +00:00
COMMDirectiveAlignmentIsInBytes = false;
2009-10-14 17:57:32 +00:00
InlineAsmStart = " InlineAsm Start";
InlineAsmEnd = " InlineAsm End";
// Directives:
WeakDefDirective = "\t.weak_definition ";
WeakRefDirective = "\t.weak_reference ";
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
2010-01-23 11:09:33 +00:00
HasMachoZeroFillDirective = true; // Uses .zerofill
HasStaticCtorDtorReferenceInStaticMode = true;
HiddenVisibilityAttr = MCSA_PrivateExtern;
// Doesn't support protected visibility.
ProtectedVisibilityAttr = MCSA_Global;
2009-10-14 17:57:32 +00:00
HasDotTypeDotSizeDirective = false;
2010-01-23 11:09:33 +00:00
HasNoDeadStrip = true;
2009-10-14 17:57:32 +00:00
}