blob: c3160e34628172796293082334ce673537f1feb7 [file] [log] [blame]
Jim Laskey8e8de8f2006-09-07 22:05:02 +00001//=====-- PPCTargetAsmInfo.h - PPC asm properties -------------*- C++ -*--====//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Jim Laskey8e8de8f2006-09-07 22:05:02 +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 Korobeynikovbc331a82008-08-08 18:23:25 +000018#include "llvm/Target/DarwinTargetAsmInfo.h"
Anton Korobeynikov7396e592008-08-08 18:23:49 +000019#include "llvm/Target/ELFTargetAsmInfo.h"
Jim Laskey8e8de8f2006-09-07 22:05:02 +000020
21namespace llvm {
22
23 // Forward declaration.
24 class PPCTargetMachine;
Anton Korobeynikovbc331a82008-08-08 18:23:25 +000025
26 struct PPCTargetAsmInfo : public virtual TargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000027 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
Jim Laskeybf111822006-12-21 20:26:09 +000028 };
Jim Laskey8e8de8f2006-09-07 22:05:02 +000029
Anton Korobeynikovbc331a82008-08-08 18:23:25 +000030 struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo,
Anton Korobeynikov7396e592008-08-08 18:23:49 +000031 public DarwinTargetAsmInfo {
Anton Korobeynikovbadd8df2008-07-19 21:44:57 +000032 explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8213f9c2008-02-29 22:09:08 +000033 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
34 bool Global) const;
Jim Laskey8e8de8f2006-09-07 22:05:02 +000035 };
36
Anton Korobeynikov7396e592008-08-08 18:23:49 +000037 struct PPCLinuxTargetAsmInfo : public PPCTargetAsmInfo,
38 public ELFTargetAsmInfo {
Anton Korobeynikovbadd8df2008-07-19 21:44:57 +000039 explicit PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8213f9c2008-02-29 22:09:08 +000040 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
41 bool Global) const;
Jim Laskeybf111822006-12-21 20:26:09 +000042 };
43
Jim Laskey8e8de8f2006-09-07 22:05:02 +000044} // namespace llvm
45
46#endif