2008-04-24 06:29:24 +08:00
|
|
|
//===-- CPPTargetMachine.h - TargetMachine for the C++ backend --*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file declares the TargetMachine that is used by the C++ backend.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CPPTARGETMACHINE_H
|
|
|
|
#define CPPTARGETMACHINE_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "llvm/Target/TargetData.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2009-07-15 04:18:05 +08:00
|
|
|
class formatted_raw_ostream;
|
2008-08-21 08:14:44 +08:00
|
|
|
|
2008-04-24 06:29:24 +08:00
|
|
|
struct CPPTargetMachine : public TargetMachine {
|
2009-08-04 12:02:45 +08:00
|
|
|
CPPTargetMachine(const Target &T, const std::string &TT,
|
2009-08-03 07:37:13 +08:00
|
|
|
const std::string &FS)
|
2009-08-04 12:02:45 +08:00
|
|
|
: TargetMachine(T) {}
|
2008-04-24 06:29:24 +08:00
|
|
|
|
2010-05-12 03:57:55 +08:00
|
|
|
virtual bool addPassesToEmitFile(PassManagerBase &PM,
|
|
|
|
formatted_raw_ostream &Out,
|
|
|
|
CodeGenFileType FileType,
|
|
|
|
CodeGenOpt::Level OptLevel,
|
|
|
|
bool DisableVerify);
|
2008-04-24 06:29:24 +08:00
|
|
|
|
2009-08-04 01:40:25 +08:00
|
|
|
virtual const TargetData *getTargetData() const { return 0; }
|
2008-04-24 06:29:24 +08:00
|
|
|
};
|
|
|
|
|
2009-07-19 07:03:22 +08:00
|
|
|
extern Target TheCppBackendTarget;
|
|
|
|
|
2008-04-24 06:29:24 +08:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|