LLVM API Documentation
00001 //===-- COFFTargetAsmInfo.cpp - COFF asm properties -------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file defines target asm properties related what form asm statements 00011 // should take in general on COFF-based targets 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #include "llvm/Target/COFFTargetAsmInfo.h" 00016 #include "llvm/ADT/SmallVector.h" 00017 using namespace llvm; 00018 00019 COFFTargetAsmInfo::COFFTargetAsmInfo() { 00020 GlobalPrefix = "_"; 00021 LCOMMDirective = "\t.lcomm\t"; 00022 COMMDirectiveTakesAlignment = false; 00023 HasDotTypeDotSizeDirective = false; 00024 HasSingleParameterDotFile = false; 00025 HiddenDirective = NULL; 00026 PrivateGlobalPrefix = "L"; // Prefix for private global symbols 00027 WeakRefDirective = "\t.weak\t"; 00028 SetDirective = "\t.set\t"; 00029 00030 // Set up DWARF directives 00031 HasLEB128 = true; // Target asm supports leb128 directives (little-endian) 00032 AbsoluteDebugSectionOffsets = true; 00033 AbsoluteEHSectionOffsets = false; 00034 SupportsDebugInformation = true; 00035 DwarfSectionOffsetDirective = "\t.secrel32\t"; 00036 } 00037