Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 1 | //===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the declarations of the SPUTargetAsmInfo properties. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "SPUTargetAsmInfo.h" |
| 15 | #include "SPUTargetMachine.h" |
| 16 | #include "llvm/Function.h" |
| 17 | using namespace llvm; |
| 18 | |
Dan Gohman | 8f09225 | 2008-11-03 18:22:42 +0000 | [diff] [blame] | 19 | SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) |
| 20 | : TargetAsmInfo(TM) { |
Scott Michel | 053c1da | 2008-01-29 02:16:57 +0000 | [diff] [blame] | 21 | PCSymbol = "."; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 22 | CommentString = "#"; |
| 23 | GlobalPrefix = ""; |
| 24 | PrivateGlobalPrefix = ".L"; |
| 25 | ZeroDirective = "\t.space\t"; |
| 26 | SetDirective = "\t.set"; |
| 27 | Data64bitsDirective = "\t.quad\t"; |
| 28 | AlignmentIsInBytes = false; |
Scott Michel | 053c1da | 2008-01-29 02:16:57 +0000 | [diff] [blame] | 29 | SwitchToSectionDirective = ".section\t"; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 30 | ConstantPoolSection = "\t.const\t"; |
| 31 | JumpTableDataSection = ".const"; |
| 32 | CStringSection = "\t.cstring"; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 33 | StaticCtorsSection = ".mod_init_func"; |
| 34 | StaticDtorsSection = ".mod_term_func"; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 35 | InlineAsmStart = "# InlineAsm Start"; |
| 36 | InlineAsmEnd = "# InlineAsm End"; |
| 37 | |
| 38 | NeedsSet = true; |
| 39 | /* FIXME: Need actual assembler syntax for DWARF info: */ |
| 40 | DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug"; |
| 41 | DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug"; |
| 42 | DwarfLineSection = ".section __DWARF,__debug_line,regular,debug"; |
| 43 | DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug"; |
| 44 | DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug"; |
| 45 | DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug"; |
| 46 | DwarfStrSection = ".section __DWARF,__debug_str,regular,debug"; |
| 47 | DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug"; |
| 48 | DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug"; |
| 49 | DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug"; |
| 50 | DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug"; |
| 51 | } |