Jacques Pienaar | fcef3e4 | 2016-03-28 13:09:54 +0000 | [diff] [blame] | 1 | //===-- LanaiMCAsmInfo.cpp - Lanai asm properties -----------------------===// |
| 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 LanaiMCAsmInfo properties. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "LanaiMCAsmInfo.h" |
| 15 | |
| 16 | #include "llvm/ADT/Triple.h" |
| 17 | |
| 18 | using namespace llvm; |
| 19 | |
| 20 | void LanaiMCAsmInfo::anchor() {} |
| 21 | |
| 22 | LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple &TheTriple) { |
| 23 | IsLittleEndian = false; |
| 24 | PrivateGlobalPrefix = ".L"; |
| 25 | WeakRefDirective = "\t.weak\t"; |
| 26 | ExceptionsType = ExceptionHandling::DwarfCFI; |
| 27 | |
| 28 | // Lanai assembly requires ".section" before ".bss" |
| 29 | UsesELFSectionDirectiveForBSS = true; |
| 30 | |
| 31 | // Use the integrated assembler instead of system one. |
| 32 | UseIntegratedAssembler = true; |
| 33 | |
| 34 | // Use '!' as comment string to correspond with old toolchain. |
| 35 | CommentString = "!"; |
| 36 | |
| 37 | // Target supports emission of debugging information. |
| 38 | SupportsDebugInformation = true; |
| 39 | |
| 40 | // Set the instruction alignment. Currently used only for address adjustment |
| 41 | // in dwarf generation. |
| 42 | MinInstAlignment = 4; |
| 43 | } |