Change allowsUnalignedMemoryAccesses to take type argument since some targets
[llvm/avr.git] / lib / Target / COFFTargetAsmInfo.cpp
blob87e85adcb43204a9f56e6022005e5b426280449d
1 //===-- COFFTargetAsmInfo.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/Target/COFFTargetAsmInfo.h"
16 #include "llvm/ADT/SmallVector.h"
17 using namespace llvm;
19 COFFTargetAsmInfo::COFFTargetAsmInfo() {
20 GlobalPrefix = "_";
21 LCOMMDirective = "\t.lcomm\t";
22 COMMDirectiveTakesAlignment = false;
23 HasDotTypeDotSizeDirective = false;
24 HasSingleParameterDotFile = false;
25 HiddenDirective = NULL;
26 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
27 WeakRefDirective = "\t.weak\t";
28 SetDirective = "\t.set\t";
30 // Set up DWARF directives
31 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
32 AbsoluteDebugSectionOffsets = true;
33 AbsoluteEHSectionOffsets = false;
34 SupportsDebugInformation = true;
35 DwarfSectionOffsetDirective = "\t.secrel32\t";