| Index: lib/Target/PNaCl/PNaClTargetMachine.h
|
| diff --git a/lib/Target/PNaCl/PNaClTargetMachine.h b/lib/Target/PNaCl/PNaClTargetMachine.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b522b156255fd1e85eeebb16a32245663e196d6b
|
| --- /dev/null
|
| +++ b/lib/Target/PNaCl/PNaClTargetMachine.h
|
| @@ -0,0 +1,44 @@
|
| +//===-- llvm/Target/PNaCl/PNaClTargetMachine.h - Target Information -*- C++ -*-===//
|
| +//
|
| +// The LLVM Compiler Infrastructure
|
| +//
|
| +// This file is distributed under the University of Illinois Open Source
|
| +// License. See LICENSE.TXT for details.
|
| +//
|
| +//===----------------------------------------------------------------------===//
|
| +//
|
| +// This file defines the TargetMachine class specific to PNaCl.
|
| +//
|
| +//===----------------------------------------------------------------------===//
|
| +
|
| +#ifndef LLVM_LIB_TARGET_PNACL_PNACLTARGETMACHINE_H
|
| +#define LLVM_LIB_TARGET_PNACL_PNACLTARGETMACHINE_H
|
| +
|
| +#include "llvm/IR/DataLayout.h"
|
| +#include "llvm/Target/TargetMachine.h"
|
| +
|
| +namespace llvm {
|
| +
|
| + class StringRef;
|
| +
|
| + class PNaClTargetMachine final : public TargetMachine {
|
| + public:
|
| + PNaClTargetMachine(const Target& T, StringRef TT,
|
| + StringRef CPU, StringRef FS,
|
| + const TargetOptions &Options,
|
| + Reloc::Model RM,
|
| + CodeModel::Model CM,
|
| + CodeGenOpt::Level OL);
|
| + virtual ~PNaClTargetMachine();
|
| +
|
| + bool addPassesToEmitFile(PassManagerBase &PM,
|
| + raw_pwrite_stream &Out,
|
| + CodeGenFileType FType,
|
| + bool DisableVerify = true,
|
| + AnalysisID StartAfter = nullptr,
|
| + AnalysisID StopAfter = nullptr) override;
|
| + private:
|
| + };
|
| +}
|
| +
|
| +#endif
|
|
|