| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame^] | 1 | //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties -----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the declarations of the HexagonMCAsmInfo properties. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "HexagonMCAsmInfo.h" |
| 15 | |
| 16 | using namespace llvm; |
| 17 | |
| 18 | HexagonMCAsmInfo::HexagonMCAsmInfo(const Target &T, StringRef TT) { |
| 19 | Data16bitsDirective = "\t.half\t"; |
| 20 | Data32bitsDirective = "\t.word\t"; |
| 21 | Data64bitsDirective = 0; // .xword is only supported by V9. |
| 22 | ZeroDirective = "\t.skip\t"; |
| 23 | CommentString = "//"; |
| 24 | HasLEB128 = true; |
| 25 | |
| 26 | PrivateGlobalPrefix = ".L"; |
| 27 | LCOMMDirectiveType = LCOMM::ByteAlignment; |
| 28 | InlineAsmStart = "# InlineAsm Start"; |
| 29 | InlineAsmEnd = "# InlineAsm End"; |
| 30 | ZeroDirective = "\t.space\t"; |
| 31 | AscizDirective = "\t.string\t"; |
| 32 | WeakRefDirective = "\t.weak\t"; |
| 33 | |
| 34 | UsesELFSectionDirectiveForBSS = true; |
| 35 | ExceptionsType = ExceptionHandling::DwarfCFI; |
| 36 | } |