MCAsmInfoCOFF.cpp revision 198090
154359Sroberto//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
2285612Sdelphij//
3285612Sdelphij//                     The LLVM Compiler Infrastructure
4285612Sdelphij//
5285612Sdelphij// This file is distributed under the University of Illinois Open Source
6285612Sdelphij// License. See LICENSE.TXT for details.
7285612Sdelphij//
8285612Sdelphij//===----------------------------------------------------------------------===//
954359Sroberto//
1054359Sroberto// This file defines target asm properties related what form asm statements
11285612Sdelphij// should take in general on COFF-based targets
12285612Sdelphij//
1354359Sroberto//===----------------------------------------------------------------------===//
14182007Sroberto
15285612Sdelphij#include "llvm/MC/MCAsmInfoCOFF.h"
1654359Sroberto#include "llvm/ADT/SmallVector.h"
1754359Srobertousing namespace llvm;
1854359Sroberto
19285612SdelphijMCAsmInfoCOFF::MCAsmInfoCOFF() {
2054359Sroberto  GlobalPrefix = "_";
2154359Sroberto  LCOMMDirective = "\t.lcomm\t";
22285612Sdelphij  COMMDirectiveTakesAlignment = false;
23285612Sdelphij  HasDotTypeDotSizeDirective = false;
24285612Sdelphij  HasSingleParameterDotFile = false;
25285612Sdelphij  HiddenDirective = NULL;
2654359Sroberto  PrivateGlobalPrefix = "L";  // Prefix for private global symbols
27285612Sdelphij  WeakRefDirective = "\t.weak\t";
28285612Sdelphij  SetDirective = "\t.set\t";
29285612Sdelphij
30285612Sdelphij  // Set up DWARF directives
31285612Sdelphij  HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
32285612Sdelphij  AbsoluteDebugSectionOffsets = true;
33285612Sdelphij  AbsoluteEHSectionOffsets = false;
34285612Sdelphij  SupportsDebugInformation = true;
35285612Sdelphij  DwarfSectionOffsetDirective = "\t.secrel32\t";
36285612Sdelphij}
37285612Sdelphij
38285612Sdelphij