blob: c3160e34628172796293082334ce673537f1feb7 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//=====-- PPCTargetAsmInfo.h - PPC asm properties -------------*- C++ -*--====//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the declaration of the DarwinTargetAsmInfo class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef PPCTARGETASMINFO_H
15#define PPCTARGETASMINFO_H
16
17#include "llvm/Target/TargetAsmInfo.h"
Anton Korobeynikov248e9c52008-08-08 18:23:25 +000018#include "llvm/Target/DarwinTargetAsmInfo.h"
Anton Korobeynikov894be4b2008-08-08 18:23:49 +000019#include "llvm/Target/ELFTargetAsmInfo.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020
21namespace llvm {
22
23 // Forward declaration.
24 class PPCTargetMachine;
Anton Korobeynikov248e9c52008-08-08 18:23:25 +000025
26 struct PPCTargetAsmInfo : public virtual TargetAsmInfo {
Dan Gohmancdd820b2007-09-25 20:27:06 +000027 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028 };
29
Anton Korobeynikov248e9c52008-08-08 18:23:25 +000030 struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo,
Anton Korobeynikov894be4b2008-08-08 18:23:49 +000031 public DarwinTargetAsmInfo {
Anton Korobeynikovd15bc312008-07-19 21:44:57 +000032 explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8750d7c2008-02-29 22:09:08 +000033 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
34 bool Global) const;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035 };
36
Anton Korobeynikov894be4b2008-08-08 18:23:49 +000037 struct PPCLinuxTargetAsmInfo : public PPCTargetAsmInfo,
38 public ELFTargetAsmInfo {
Anton Korobeynikovd15bc312008-07-19 21:44:57 +000039 explicit PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8750d7c2008-02-29 22:09:08 +000040 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
41 bool Global) const;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000042 };
43
44} // namespace llvm
45
46#endif