New "TargetMachOWriterInfo" class. It holds target-specific information
[oota-llvm.git] / lib / Target / PowerPC / PPCMachOWriterInfo.h
1 //===-- PPCMachOWriterInfo.h - Mach-O Writer Info for PowerPC ---*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Bill Wendling and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements Mach-O writer information for the PowerPC backend.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef PPC_MACHO_WRITER_INFO_H
15 #define PPC_MACHO_WRITER_INFO_H
16
17 #include "llvm/Target/TargetMachOWriterInfo.h"
18
19 namespace llvm {
20
21   // Forward declarations
22   class PPCTargetMachine;
23
24   struct PPCMachOWriterInfo : public TargetMachOWriterInfo {
25     PPCMachOWriterInfo(const PPCTargetMachine &TM);
26     virtual ~PPCMachOWriterInfo() {}
27
28     virtual const char *getPassName() const {
29       return "PowerPC Mach-O Writer";
30     }
31   };
32
33 } // end llvm namespace
34
35 #endif // PPC_MACHO_WRITER_INFO_H