blob: 4884628b2e773c3434090ed32e28cf8497c178f1 [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"
18
19namespace llvm {
20
21 // Forward declaration.
22 class PPCTargetMachine;
23
24 struct PPCTargetAsmInfo : public TargetAsmInfo {
Dan Gohmancdd820b2007-09-25 20:27:06 +000025 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026 };
27
28 struct DarwinTargetAsmInfo : public PPCTargetAsmInfo {
Dan Gohmancdd820b2007-09-25 20:27:06 +000029 explicit DarwinTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8750d7c2008-02-29 22:09:08 +000030 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
31 bool Global) const;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032 };
33
34 struct LinuxTargetAsmInfo : public PPCTargetAsmInfo {
Dan Gohmancdd820b2007-09-25 20:27:06 +000035 explicit LinuxTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8750d7c2008-02-29 22:09:08 +000036 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
37 bool Global) const;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000038 };
39
40} // namespace llvm
41
42#endif