Revert r201237+r201238: Demote EmitRawText call in AsmPrinter::EmitInlineAsm() and...
[oota-llvm.git] / lib / Target / ARM / MCTargetDesc / ARMMCAsmInfo.cpp
1 //===-- ARMMCAsmInfo.cpp - ARM asm properties -----------------------------===//
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 contains the declarations of the ARMMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "ARMMCAsmInfo.h"
15 #include "llvm/Support/CommandLine.h"
16
17 using namespace llvm;
18
19 void ARMMCAsmInfoDarwin::anchor() { }
20
21 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
22   Data64bitsDirective = 0;
23   CommentString = "@";
24   Code16Directive = ".code\t16";
25   Code32Directive = ".code\t32";
26   UseDataRegionDirectives = true;
27
28   SupportsDebugInformation = true;
29
30   // Exceptions handling
31   ExceptionsType = ExceptionHandling::SjLj;
32 }
33
34 void ARMELFMCAsmInfo::anchor() { }
35
36 ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
37   // ".comm align is in bytes but .align is pow-2."
38   AlignmentIsInBytes = false;
39
40   Data64bitsDirective = 0;
41   CommentString = "@";
42   Code16Directive = ".code\t16";
43   Code32Directive = ".code\t32";
44
45   HasLEB128 = true;
46   SupportsDebugInformation = true;
47
48   // Exceptions handling
49   ExceptionsType = ExceptionHandling::ARM;
50
51   // foo(plt) instead of foo@plt
52   UseParensForSymbolVariant = true;
53 }