| Jia Liu | b22310f | 2012-02-18 12:03:15 +0000 | [diff] [blame] | 1 | //===-- HexagonMCAsmInfo.cpp - Hexagon asm properties ---------------------===// |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 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 | |
| Juergen Ributzka | d12ccbd | 2013-11-19 00:57:56 +0000 | [diff] [blame] | 18 | // Pin the vtable to this file. |
| 19 | void HexagonMCAsmInfo::anchor() {} |
| 20 | |
| Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 21 | HexagonMCAsmInfo::HexagonMCAsmInfo(const Triple &TT) { |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 22 | Data16bitsDirective = "\t.half\t"; |
| 23 | Data32bitsDirective = "\t.word\t"; |
| Craig Topper | 062a2ba | 2014-04-25 05:30:21 +0000 | [diff] [blame] | 24 | Data64bitsDirective = nullptr; // .xword is only supported by V9. |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 25 | CommentString = "//"; |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 26 | |
| Benjamin Kramer | 68b9f05 | 2012-09-07 21:08:01 +0000 | [diff] [blame] | 27 | LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment; |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 28 | InlineAsmStart = "# InlineAsm Start"; |
| 29 | InlineAsmEnd = "# InlineAsm End"; |
| 30 | ZeroDirective = "\t.space\t"; |
| 31 | AscizDirective = "\t.string\t"; |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 32 | |
| Jyotsna Verma | 27c06f3 | 2013-03-28 19:34:49 +0000 | [diff] [blame] | 33 | SupportsDebugInformation = true; |
| Krzysztof Parzyszek | 3e28229 | 2016-04-25 21:05:19 +0000 | [diff] [blame] | 34 | MinInstAlignment = 4; |
| Tony Linthicum | 1213a7a | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 35 | UsesELFSectionDirectiveForBSS = true; |
| 36 | ExceptionsType = ExceptionHandling::DwarfCFI; |
| 37 | } |