blob: 0d18b7c9e213779c353775469297208a164503c1 [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"
Jim Laskey8e8de8f2006-09-07 22:05:02 +000019
20namespace llvm {
21
22 // Forward declaration.
23 class PPCTargetMachine;
Anton Korobeynikovbc331a82008-08-08 18:23:25 +000024
25 struct PPCTargetAsmInfo : public virtual TargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000026 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
Jim Laskeybf111822006-12-21 20:26:09 +000027 };
Jim Laskey8e8de8f2006-09-07 22:05:02 +000028
Anton Korobeynikovbc331a82008-08-08 18:23:25 +000029 struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo,
30 public DarwinTargetAsmInfo{
Anton Korobeynikovbadd8df2008-07-19 21:44:57 +000031 explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8213f9c2008-02-29 22:09:08 +000032 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
33 bool Global) const;
Jim Laskey8e8de8f2006-09-07 22:05:02 +000034 };
35
Anton Korobeynikovbadd8df2008-07-19 21:44:57 +000036 struct PPCLinuxTargetAsmInfo : public PPCTargetAsmInfo {
37 explicit PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov8213f9c2008-02-29 22:09:08 +000038 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
39 bool Global) const;
Jim Laskeybf111822006-12-21 20:26:09 +000040 };
41
Jim Laskey8e8de8f2006-09-07 22:05:02 +000042} // namespace llvm
43
44#endif