forked from OSchip/llvm-project
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
//===-- ARMMCAsmInfo.cpp - ARM asm properties -----------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the ARMMCAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "ARMMCAsmInfo.h"
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
using namespace llvm;
|
|
|
|
void ARMMCAsmInfoDarwin::anchor() { }
|
|
|
|
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
|
|
Data64bitsDirective = 0;
|
|
CommentString = "@";
|
|
Code16Directive = ".code\t16";
|
|
Code32Directive = ".code\t32";
|
|
UseDataRegionDirectives = true;
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
// Exceptions handling
|
|
ExceptionsType = ExceptionHandling::SjLj;
|
|
|
|
UseIntegratedAssembler = true;
|
|
}
|
|
|
|
void ARMELFMCAsmInfo::anchor() { }
|
|
|
|
ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
|
|
// ".comm align is in bytes but .align is pow-2."
|
|
AlignmentIsInBytes = false;
|
|
|
|
Data64bitsDirective = 0;
|
|
CommentString = "@";
|
|
Code16Directive = ".code\t16";
|
|
Code32Directive = ".code\t32";
|
|
|
|
HasLEB128 = true;
|
|
SupportsDebugInformation = true;
|
|
|
|
// Exceptions handling
|
|
ExceptionsType = ExceptionHandling::ARM;
|
|
|
|
// foo(plt) instead of foo@plt
|
|
UseParensForSymbolVariant = true;
|
|
|
|
UseIntegratedAssembler = true;
|
|
}
|