blob: e6b79dd9d120bb3f6795c9154b4dff28e02f5985 [file] [log] [blame]
Chris Lattner2807afa2009-08-22 21:03:30 +00001//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
Chris Lattner40412e72009-07-27 16:45:59 +00002//
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 defines target asm properties related what form asm statements
11// should take in general on COFF-based targets
12//
13//===----------------------------------------------------------------------===//
14
Chris Lattneraf76e592009-08-22 20:48:53 +000015#include "llvm/MC/MCAsmInfoCOFF.h"
Chris Lattner40412e72009-07-27 16:45:59 +000016#include "llvm/ADT/SmallVector.h"
17using namespace llvm;
18
Chris Lattner8eeba352010-01-20 06:34:14 +000019MCAsmInfoCOFF::MCAsmInfoCOFF() {
Chris Lattner40412e72009-07-27 16:45:59 +000020 GlobalPrefix = "_";
Chris Lattner9eb158d2010-01-23 07:47:02 +000021 HasLCOMMDirective = true;
Chris Lattner40412e72009-07-27 16:45:59 +000022 HasDotTypeDotSizeDirective = false;
23 HasSingleParameterDotFile = false;
Chris Lattner40412e72009-07-27 16:45:59 +000024 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
25 WeakRefDirective = "\t.weak\t";
Chris Lattner41eb8b42010-01-19 05:08:13 +000026 LinkOnceDirective = "\t.linkonce same_size\n";
Chris Lattner40412e72009-07-27 16:45:59 +000027 SetDirective = "\t.set\t";
Chris Lattner152a29b2010-01-23 06:53:23 +000028
29 // Doesn't support visibility:
30 HiddenVisibilityAttr = ProtectedVisibilityAttr = MCSA_Invalid;
Chris Lattner40412e72009-07-27 16:45:59 +000031
32 // Set up DWARF directives
33 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
34 AbsoluteDebugSectionOffsets = true;
35 AbsoluteEHSectionOffsets = false;
36 SupportsDebugInformation = true;
37 DwarfSectionOffsetDirective = "\t.secrel32\t";
Chris Lattner40412e72009-07-27 16:45:59 +000038}
39