mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
fce1765a19
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33549 91177308-0d34-0410-b5e6-96231b3b80d8
71 lines
2.9 KiB
C++
71 lines
2.9 KiB
C++
//===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by James M. Laskey and is distributed under the
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the ARMTargetAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "ARMTargetAsmInfo.h"
|
|
#include "ARMTargetMachine.h"
|
|
using namespace llvm;
|
|
|
|
ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
|
|
const ARMSubtarget *Subtarget = &TM.getSubtarget<ARMSubtarget>();
|
|
if (Subtarget->isTargetDarwin()) {
|
|
GlobalPrefix = "_";
|
|
ZeroDirective = "\t.space\t";
|
|
PrivateGlobalPrefix = "L";
|
|
BSSSection = 0; // no BSS section.
|
|
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
|
|
SetDirective = "\t.set";
|
|
WeakRefDirective = "\t.weak_reference\t";
|
|
HiddenDirective = "\t.private_extern\t";
|
|
JumpTableDataSection = ".const";
|
|
CStringSection = "\t.cstring";
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
COMMDirectiveTakesAlignment = false;
|
|
HasDotTypeDotSizeDirective = false;
|
|
StaticCtorsSection = ".mod_init_func";
|
|
StaticDtorsSection = ".mod_term_func";
|
|
InlineAsmStart = "@ InlineAsm Start";
|
|
InlineAsmEnd = "@ InlineAsm End";
|
|
|
|
// In non-PIC modes, emit a special label before jump tables so that the
|
|
// linker can perform more accurate dead code stripping.
|
|
if (TM.getRelocationModel() != Reloc::PIC_) {
|
|
// Emit a local label that is preserved until the linker runs.
|
|
JumpTableSpecialLabelPrefix = "l";
|
|
}
|
|
|
|
NeedsSet = true;
|
|
DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
|
|
DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
|
|
DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
|
|
DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
|
|
DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
|
|
DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
|
|
DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
|
|
DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
|
|
DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
|
|
DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
|
|
DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
|
|
} else {
|
|
Data32bitsDirective = "\t.word\t";
|
|
ZeroDirective = "\t.skip\t";
|
|
WeakRefDirective = "\t.weak\t";
|
|
StaticCtorsSection = "\t.section .ctors,\"aw\",%progbits";
|
|
StaticDtorsSection = "\t.section .dtors,\"aw\",%progbits";
|
|
}
|
|
AlignmentIsInBytes = false;
|
|
Data64bitsDirective = 0;
|
|
CommentString = "@";
|
|
DataSection = "\t.data";
|
|
ConstantPoolSection = "\t.text\n";
|
|
}
|