CPPTargetMachine.h revision 235633
17263Smalenkov//===-- CPPTargetMachine.h - TargetMachine for the C++ backend --*- C++ -*-===//
27263Smalenkov//
37263Smalenkov//                     The LLVM Compiler Infrastructure
47263Smalenkov//
57263Smalenkov// This file is distributed under the University of Illinois Open Source
67263Smalenkov// License. See LICENSE.TXT for details.
77263Smalenkov//
87263Smalenkov//===----------------------------------------------------------------------===//
97263Smalenkov//
107263Smalenkov// This file declares the TargetMachine that is used by the C++ backend.
117263Smalenkov//
127263Smalenkov//===----------------------------------------------------------------------===//
137263Smalenkov
147263Smalenkov#ifndef CPPTARGETMACHINE_H
157263Smalenkov#define CPPTARGETMACHINE_H
167263Smalenkov
177263Smalenkov#include "llvm/Target/TargetMachine.h"
187263Smalenkov#include "llvm/Target/TargetData.h"
197263Smalenkov
207263Smalenkovnamespace llvm {
217263Smalenkov
227263Smalenkovclass formatted_raw_ostream;
237263Smalenkov
247263Smalenkovstruct CPPTargetMachine : public TargetMachine {
257263Smalenkov  CPPTargetMachine(const Target &T, StringRef TT,
267263Smalenkov                   StringRef CPU, StringRef FS, const TargetOptions &Options,
277263Smalenkov                   Reloc::Model RM, CodeModel::Model CM,
287263Smalenkov                   CodeGenOpt::Level OL)
297263Smalenkov    : TargetMachine(T, TT, CPU, FS, Options) {}
307263Smalenkov
317263Smalenkov  virtual bool addPassesToEmitFile(PassManagerBase &PM,
327263Smalenkov                                   formatted_raw_ostream &Out,
337263Smalenkov                                   CodeGenFileType FileType,
347263Smalenkov                                   bool DisableVerify);
357263Smalenkov
367263Smalenkov  virtual const TargetData *getTargetData() const { return 0; }
377263Smalenkov};
387263Smalenkov
397263Smalenkovextern Target TheCppBackendTarget;
407263Smalenkov
417263Smalenkov} // End llvm namespace
427263Smalenkov
4315235Sgoetz
447263Smalenkov#endif
457263Smalenkov