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"
14using namespace llvm;
15
16void MSP430MCAsmInfo::anchor() { }
17
18MSP430MCAsmInfo::MSP430MCAsmInfo(const Triple &TT,
19 const MCTargetOptions &Options)
20 : MCAsmInfoELF(Options) {
21 // Since MSP430-GCC already generates 32-bit DWARF information, we will
22 // also store 16-bit pointers as 32-bit pointers in DWARF, because using
23 // 32-bit DWARF pointers is already a working and tested path for LLDB
24 // as well.
25 CodePointerSize = 4;
26 CalleeSaveStackSlotSize = 2;
27
28 CommentString = ";";
29 SeparatorString = "{";
30
31 AlignmentIsInBytes = false;
32 UsesELFSectionDirectiveForBSS = true;
33
34 SupportsDebugInformation = true;
35
36 ExceptionsType = ExceptionHandling::DwarfCFI;
37}
38