summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Nios2/MCTargetDesc/Nios2MCAsmInfo.cpp
blob: e3c66e6776c263daf2cf0e25fc5fbba6910d7de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//===-- Nios2MCAsmInfo.cpp - Nios2 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 Nios2MCAsmInfo properties.
//
//===----------------------------------------------------------------------===//

#include "Nios2MCAsmInfo.h"

#include "llvm/ADT/Triple.h"

using namespace llvm;

void Nios2MCAsmInfo::anchor() {}

Nios2MCAsmInfo::Nios2MCAsmInfo(const Triple &TheTriple) {
  if ((TheTriple.getArch() == Triple::nios2))
    IsLittleEndian = true; // the default of IsLittleEndian is true

  AlignmentIsInBytes = false;
  Data16bitsDirective = "\t.2byte\t";
  Data32bitsDirective = "\t.4byte\t";
  Data64bitsDirective = "\t.8byte\t";
  PrivateLabelPrefix = ".LC";
  CommentString = "#";
  ZeroDirective = "\t.space\t";
  GPRel32Directive = "\t.gpword\t";
  GPRel64Directive = "\t.gpdword\t";
  WeakRefDirective = "\t.weak\t";
  GlobalDirective = "\t.global\t";
  AscizDirective = "\t.string\t";
  UseAssignmentForEHBegin = true;

  SupportsDebugInformation = true;
  ExceptionsType = ExceptionHandling::DwarfCFI;
  DwarfRegNumForCFI = true;
  UsesELFSectionDirectiveForBSS = true;
}
OpenPOWER on IntegriCloud