Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Unified Diff: lib/Target/PNaCl/PNaClTargetMachine.h

Issue 1395453003: Create a proper target machine for PNaCl. Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix a test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/PNaCl/Makefile ('k') | lib/Target/PNaCl/PNaClTargetMachine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « lib/Target/PNaCl/Makefile ('k') | lib/Target/PNaCl/PNaClTargetMachine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698