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

Unified Diff: lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.cpp

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/TargetInfo/PNaClTargetInfo.h ('k') | test/CodeGen/Generic/no-target.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.cpp
diff --git a/lib/Target/JSBackend/MCTargetDesc/JSBackendMCTargetDesc.h b/lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.cpp
similarity index 53%
copy from lib/Target/JSBackend/MCTargetDesc/JSBackendMCTargetDesc.h
copy to lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.cpp
index c98a55df83ba58cfc76b4ef4b5391c3df38d00b2..c78a830ec38589ab34bbbff9343034b018c3ea25 100644
--- a/lib/Target/JSBackend/MCTargetDesc/JSBackendMCTargetDesc.h
+++ b/lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.cpp
@@ -1,4 +1,4 @@
-//===- JSBackendMCTargetDesc.h - JS Backend Target Descriptions -*- C++ -*-===//
+//===-- llvm/Target/PNaCl/PNaClTargetMachine.h - Target Information -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -7,19 +7,19 @@
//
//===----------------------------------------------------------------------===//
//
-// This file provides asm.js specific target descriptions.
+// This file defines the TargetMachine class specific to PNaCl.
//
//===----------------------------------------------------------------------===//
-#ifndef JSBACKENDMCTARGETDESC_H
-#define JSBACKENDMCTARGETDESC_H
-
#include "llvm/Support/TargetRegistry.h"
namespace llvm {
+ Target PNaClLe32_Target;
+}
-extern Target TheJSBackendTarget;
-
-} // End llvm namespace
+using namespace llvm;
-#endif
+extern "C" void LLVMInitializePNaClTargetInfo() {
+ RegisterTarget<Triple::le32, false>
+ X(PNaClLe32_Target, "le32", "The PNaCl/Emscripten target.");
+}
« no previous file with comments | « lib/Target/PNaCl/TargetInfo/PNaClTargetInfo.h ('k') | test/CodeGen/Generic/no-target.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698