When promoting an alloca to registers discard any lifetime intrinsics.
[llvm/stm8.git] / lib / MC / MCAsmInfoCOFF.cpp
blob7fc7d7abb232c8283ce663fe7dbfb1d60b68a4f8
1 //===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
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 defines target asm properties related what form asm statements
11 // should take in general on COFF-based targets
13 //===----------------------------------------------------------------------===//
15 #include "llvm/MC/MCAsmInfoCOFF.h"
16 #include "llvm/ADT/SmallVector.h"
17 using namespace llvm;
19 MCAsmInfoCOFF::MCAsmInfoCOFF() {
20 GlobalPrefix = "_";
21 COMMDirectiveAlignmentIsInBytes = false;
22 HasLCOMMDirective = true;
23 HasDotTypeDotSizeDirective = false;
24 HasSingleParameterDotFile = false;
25 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
26 WeakRefDirective = "\t.weak\t";
27 LinkOnceDirective = "\t.linkonce discard\n";
29 // Doesn't support visibility:
30 HiddenVisibilityAttr = ProtectedVisibilityAttr = MCSA_Invalid;
32 // Set up DWARF directives
33 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
34 SupportsDebugInformation = true;
35 DwarfSectionOffsetDirective = "\t.secrel32\t";
36 HasMicrosoftFastStdCallMangling = true;