~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/lib/Target/PowerPC/PPCMCAsmInfo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//===-- PPCMCAsmInfo.cpp - PPC 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 contains the declarations of the MCAsmInfoDarwin properties.
11
 
//
12
 
//===----------------------------------------------------------------------===//
13
 
 
14
 
#include "PPCMCAsmInfo.h"
15
 
using namespace llvm;
16
 
 
17
 
PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
18
 
  PCSymbol = ".";
19
 
  CommentString = ";";
20
 
  ExceptionsType = ExceptionHandling::Dwarf;
21
 
 
22
 
  if (!is64Bit)
23
 
    Data64bitsDirective = 0;      // We can't emit a 64-bit unit in PPC32 mode.
24
 
  AssemblerDialect = 1;           // New-Style mnemonics.
25
 
  SupportsDebugInformation= true; // Debug information.
26
 
}
27
 
 
28
 
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
29
 
  // ".comm align is in bytes but .align is pow-2."
30
 
  AlignmentIsInBytes = false;
31
 
 
32
 
  CommentString = "#";
33
 
  GlobalPrefix = "";
34
 
  PrivateGlobalPrefix = ".L";
35
 
  WeakRefDirective = "\t.weak\t";
36
 
  
37
 
  // Uses '.section' before '.bss' directive
38
 
  UsesELFSectionDirectiveForBSS = true;  
39
 
 
40
 
  // Debug Information
41
 
  SupportsDebugInformation = true;
42
 
 
43
 
  PCSymbol = ".";
44
 
 
45
 
  // Set up DWARF directives
46
 
  HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
47
 
 
48
 
  // Exceptions handling
49
 
  if (!is64Bit)
50
 
    ExceptionsType = ExceptionHandling::Dwarf;
51
 
    
52
 
  ZeroDirective = "\t.space\t";
53
 
  Data64bitsDirective = is64Bit ? "\t.quad\t" : 0;
54
 
  HasLCOMMDirective = true;
55
 
  AssemblerDialect = 0;           // Old-Style mnemonics.
56
 
}
57