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

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

Issue 7847007: lto/addAsmGlobalSymbols: fail fracefully when the target does not define AsmParser. (Closed) Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: . Created 9 years, 3 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/PNaCl.h ('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
===================================================================
--- lib/Target/PNaCl/PNaClTargetMachine.h (revision 0)
+++ lib/Target/PNaCl/PNaClTargetMachine.h (revision 0)
@@ -0,0 +1,45 @@
+//===-- PNaClTargetMachine.h - TargetMachine for the PNaCl --*- 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 PNaCl-specific subclass of TargetMachine.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef PNACLTARGETMACHINE_H
+#define PNACLTARGETMACHINE_H
+
+#include "llvm/Target/TargetMachine.h"
+#include "llvm/Target/TargetData.h"
+
+namespace llvm {
+
+class formatted_raw_ostream;
+
+class PNaClTargetMachine : public TargetMachine {
+ const TargetData DataLayout; // Calculates type size & alignment
+
+public:
+ PNaClTargetMachine(const Target &T, StringRef TT,
+ StringRef CPU, StringRef FS,
+ Reloc::Model RM, CodeModel::Model CM);
+
+ virtual bool addPassesToEmitFile(PassManagerBase &PM,
+ formatted_raw_ostream &Out,
+ CodeGenFileType FileType,
+ CodeGenOpt::Level OptLevel,
+ bool DisableVerify);
+
+ virtual const TargetData *getTargetData() const { return &DataLayout; }
+};
+
+extern Target ThePNaClTarget;
+
+} // end namespace llvm
+
+#endif
« no previous file with comments | « lib/Target/PNaCl/PNaCl.h ('k') | lib/Target/PNaCl/PNaClTargetMachine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698