1 //===-- PIC16MCAsmInfo.cpp - PIC16 asm properties -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the PIC16MCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "PIC16MCAsmInfo.h"
16 // FIXME: Layering violation to get enums and static function, should be moved
17 // to separate headers.
19 #include "PIC16ABINames.h"
20 #include "PIC16ISelLowering.h"
23 PIC16MCAsmInfo::PIC16MCAsmInfo(const Target &T, StringRef TT) {
25 GlobalPrefix = PAN::getTagName(PAN::PREFIX_SYMBOL);
26 GlobalDirective = "\tglobal\t";
27 ExternDirective = "\textern\t";
29 Data8bitsDirective = " db ";
30 Data16bitsDirective = " dw ";
31 Data32bitsDirective = " dl ";
32 Data64bitsDirective = NULL;
34 AsciiDirective = " dt ";
35 AscizDirective = NULL;
37 RomData8bitsDirective = " dw ";
38 RomData16bitsDirective = " rom_di ";
39 RomData32bitsDirective = " rom_dl ";
40 HasSetDirective = false;
42 // Set it to false because we weed to generate c file name and not bc file
44 HasSingleParameterDotFile = false;
47 const char *PIC16MCAsmInfo::getDataASDirective(unsigned Size,
49 if (AS != PIC16ISD::ROM_SPACE)
53 case 8: return RomData8bitsDirective;
54 case 16: return RomData16bitsDirective;
55 case 32: return RomData32bitsDirective;