blob: c13063c812bba5d55136ea53df10d653f5be8fa1 [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"
18
19namespace llvm {
20
21 // Forward declaration.
22 class PPCTargetMachine;
Jim Laskeybf111822006-12-21 20:26:09 +000023
24 struct PPCTargetAsmInfo : public TargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000025 explicit PPCTargetAsmInfo(const PPCTargetMachine &TM);
Jim Laskeybf111822006-12-21 20:26:09 +000026 };
Jim Laskey8e8de8f2006-09-07 22:05:02 +000027
Jim Laskeybf111822006-12-21 20:26:09 +000028 struct DarwinTargetAsmInfo : public PPCTargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000029 explicit DarwinTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov7b1b7f52008-02-27 23:49:15 +000030 virtual unsigned PreferredEHDataFormat(unsigned Reason, bool Global) const;
Jim Laskey8e8de8f2006-09-07 22:05:02 +000031 };
32
Jim Laskeybf111822006-12-21 20:26:09 +000033 struct LinuxTargetAsmInfo : public PPCTargetAsmInfo {
Dan Gohman677ccc62007-09-25 20:27:06 +000034 explicit LinuxTargetAsmInfo(const PPCTargetMachine &TM);
Anton Korobeynikov7b1b7f52008-02-27 23:49:15 +000035 virtual unsigned PreferredEHDataFormat(unsigned Reason, bool Global) const;
Jim Laskeybf111822006-12-21 20:26:09 +000036 };
37
Jim Laskey8e8de8f2006-09-07 22:05:02 +000038} // namespace llvm
39
40#endif