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" |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 15 | using namespace llvm; |
| 16 | |
Chris Lattner | 09e820b | 2009-08-02 04:44:33 +0000 | [diff] [blame^] | 17 | SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo() { |
| 18 | ZeroDirective = "\t.space\t"; |
| 19 | SetDirective = "\t.set"; |
| 20 | Data64bitsDirective = "\t.quad\t"; |
| 21 | AlignmentIsInBytes = false; |
| 22 | LCOMMDirective = "\t.lcomm\t"; |
| 23 | InlineAsmStart = "# InlineAsm Start"; |
| 24 | InlineAsmEnd = "# InlineAsm End"; |
| 25 | |
Scott Michel | 053c1da | 2008-01-29 02:16:57 +0000 | [diff] [blame] | 26 | PCSymbol = "."; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 27 | CommentString = "#"; |
| 28 | GlobalPrefix = ""; |
| 29 | PrivateGlobalPrefix = ".L"; |
Scott Michel | f0569be | 2008-12-27 04:51:36 +0000 | [diff] [blame] | 30 | |
Scott Michel | 9de57a9 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 31 | // Has leb128, .loc and .file |
| 32 | HasLEB128 = true; |
| 33 | HasDotLocAndDotFile = true; |
| 34 | |
Scott Michel | 9de57a9 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 35 | SupportsDebugInformation = true; |
| 36 | NeedsSet = true; |
Scott Michel | 9de57a9 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 37 | DwarfAbbrevSection = "\t.section .debug_abbrev,\"\",@progbits"; |
| 38 | DwarfInfoSection = "\t.section .debug_info,\"\",@progbits"; |
| 39 | DwarfLineSection = "\t.section .debug_line,\"\",@progbits"; |
| 40 | DwarfFrameSection = "\t.section .debug_frame,\"\",@progbits"; |
| 41 | DwarfPubNamesSection = "\t.section .debug_pubnames,\"\",@progbits"; |
| 42 | DwarfPubTypesSection = "\t.section .debug_pubtypes,\"\",progbits"; |
| 43 | DwarfStrSection = "\t.section .debug_str,\"MS\",@progbits,1"; |
| 44 | DwarfLocSection = "\t.section .debug_loc,\"\",@progbits"; |
| 45 | DwarfARangesSection = "\t.section .debug_aranges,\"\",@progbits"; |
| 46 | DwarfRangesSection = "\t.section .debug_ranges,\"\",@progbits"; |
Chris Lattner | b839c3f | 2009-06-18 23:31:37 +0000 | [diff] [blame] | 47 | DwarfMacroInfoSection = 0; // macro info not supported. |
Scott Michel | 9de57a9 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 48 | |
| 49 | // Exception handling is not supported on CellSPU (think about it: you only |
| 50 | // have 256K for code+data. Would you support exception handling?) |
| 51 | SupportsExceptionHandling = false; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 52 | } |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 53 | |