[PATCH] D52265: [PPC64] handle ppc64le triple in getBitcodeMachineKind
Sean Fertile via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 17:28:25 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD342604: [PPC64] Handle ppc64le triple in getBitcodeMachineKind. (authored by sfertile, committed by ).
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D52265
Files:
ELF/InputFiles.cpp
test/ELF/lto/ppc64le.ll
Index: ELF/InputFiles.cpp
===================================================================
--- ELF/InputFiles.cpp
+++ ELF/InputFiles.cpp
@@ -1071,6 +1071,7 @@
case Triple::ppc:
return EM_PPC;
case Triple::ppc64:
+ case Triple::ppc64le:
return EM_PPC64;
case Triple::x86:
return T.isOSIAMCU() ? EM_IAMCU : EM_386;
Index: test/ELF/lto/ppc64le.ll
===================================================================
--- test/ELF/lto/ppc64le.ll
+++ test/ELF/lto/ppc64le.ll
@@ -0,0 +1,12 @@
+; REQUIRES: ppc
+
+; RUN: llvm-as %s -o %t.o
+; RUN: ld.lld %t.o -o %t
+
+target datalayout = "e-m:e-i64:64-n32:64"
+target triple = "powerpc64le-unknown-linux-gnu"
+
+define void @__start() {
+ entry:
+ ret void
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52265.166203.patch
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180920/6ca53813/attachment.bin>
More information about the llvm-commits
mailing list