/src/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/LanaiMCAsmInfo.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===-- LanaiMCAsmInfo.cpp - Lanai asm properties -----------------------===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | // |
9 | | // This file contains the declarations of the LanaiMCAsmInfo properties. |
10 | | // |
11 | | //===----------------------------------------------------------------------===// |
12 | | |
13 | | #include "LanaiMCAsmInfo.h" |
14 | | |
15 | | #include "llvm/TargetParser/Triple.h" |
16 | | |
17 | | using namespace llvm; |
18 | | |
19 | 0 | void LanaiMCAsmInfo::anchor() {} |
20 | | |
21 | | LanaiMCAsmInfo::LanaiMCAsmInfo(const Triple & /*TheTriple*/, |
22 | 0 | const MCTargetOptions &Options) { |
23 | 0 | IsLittleEndian = false; |
24 | 0 | PrivateGlobalPrefix = ".L"; |
25 | 0 | WeakRefDirective = "\t.weak\t"; |
26 | 0 | ExceptionsType = ExceptionHandling::DwarfCFI; |
27 | | |
28 | | // Lanai assembly requires ".section" before ".bss" |
29 | 0 | UsesELFSectionDirectiveForBSS = true; |
30 | | |
31 | | // Use '!' as comment string to correspond with old toolchain. |
32 | 0 | CommentString = "!"; |
33 | | |
34 | | // Target supports emission of debugging information. |
35 | 0 | SupportsDebugInformation = true; |
36 | | |
37 | | // Set the instruction alignment. Currently used only for address adjustment |
38 | | // in dwarf generation. |
39 | 0 | MinInstAlignment = 4; |
40 | 0 | } |