blob: 8e2392e6f71a1d557e4901bac1c2c08db14d0ceb [file] [log] [blame]
Sanjiv Gupta0e687712008-05-13 09:02:57 +00001//===-- PIC16TargetAsmInfo.cpp - PIC16 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 PIC16TargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "PIC16TargetAsmInfo.h"
Dan Gohman8f092252008-11-03 18:22:42 +000015#include "PIC16TargetMachine.h"
Sanjiv Gupta1b046942009-01-13 19:18:47 +000016#include "llvm/GlobalValue.h"
Sanjiv Gupta0e687712008-05-13 09:02:57 +000017
18using namespace llvm;
19
20PIC16TargetAsmInfo::
Sanjiv Guptab1b5ffd2008-11-19 11:00:54 +000021PIC16TargetAsmInfo(const PIC16TargetMachine &TM)
Dan Gohman8f092252008-11-03 18:22:42 +000022 : TargetAsmInfo(TM) {
Sanjiv Gupta0e687712008-05-13 09:02:57 +000023 CommentString = ";";
Sanjiv Guptab1b5ffd2008-11-19 11:00:54 +000024 Data8bitsDirective = " db ";
25 Data16bitsDirective = " db ";
26 Data32bitsDirective = " db ";
Sanjiv Guptab1b5ffd2008-11-19 11:00:54 +000027 ZeroDirective = NULL;
Sanjiv Gupta1b046942009-01-13 19:18:47 +000028 AsciiDirective = " dt ";
29 AscizDirective = NULL;
30 BSSSection_ = getNamedSection("udata.# UDATA",
31 SectionFlags::Writeable | SectionFlags::BSS);
32 ReadOnlySection = getNamedSection("romdata.# ROMDATA", SectionFlags::None);
33 DataSection = getNamedSection("idata.# IDATA", SectionFlags::Writeable);
34 SwitchToSectionDirective = "";
Sanjiv Gupta0e687712008-05-13 09:02:57 +000035}