xref: /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1 //===-- MSP430MCAsmInfo.cpp - MSP430 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 MSP430MCAsmInfo properties.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "MSP430MCAsmInfo.h"
14 using namespace llvm;
15 
16 void MSP430MCAsmInfo::anchor() { }
17 
18 MSP430MCAsmInfo::MSP430MCAsmInfo(const Triple &TT) {
19   // Since MSP430-GCC already generates 32-bit DWARF information, we will
20   // also store 16-bit pointers as 32-bit pointers in DWARF, because using
21   // 32-bit DWARF pointers is already a working and tested path for LLDB
22   // as well.
23   CodePointerSize = 4;
24   CalleeSaveStackSlotSize = 2;
25 
26   CommentString = ";";
27   SeparatorString = "{";
28 
29   AlignmentIsInBytes = false;
30   UsesELFSectionDirectiveForBSS = true;
31 
32   SupportsDebugInformation = true;
33 
34   ExceptionsType = ExceptionHandling::DwarfCFI;
35 }
36