summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bindings
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-16 05:11:24 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-16 05:11:24 +0000
commit5590967610afa5fcc79386e08acc4d0fad5b6b9f (patch)
tree79b584bf548d4bc6d19e0656121a58dcb5870757 /llvm/test/Bindings
parent6615654f565c3a19f1f8a6e74ccdc723fd0c71d3 (diff)
downloadbcm5719-llvm-5590967610afa5fcc79386e08acc4d0fad5b6b9f.tar.gz
bcm5719-llvm-5590967610afa5fcc79386e08acc4d0fad5b6b9f.zip
Restore the capability to manipulate datalayout from the C API
Summary: This consist in variosu addition to the C API: LLVMTargetDataRef LLVMGetModuleDataLayout(LLVMModuleRef M); void LLVMSetModuleDataLayout(LLVMModuleRef M, LLVMTargetDataRef DL); LLVMTargetDataRef LLVMCreateTargetMachineData(LLVMTargetMachineRef T); Reviewers: joker.eph, Wallbraker, echristo Subscribers: axw Differential Revision: http://reviews.llvm.org/D17255 llvm-svn: 260936
Diffstat (limited to 'llvm/test/Bindings')
-rw-r--r--llvm/test/Bindings/llvm-c/echo.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Bindings/llvm-c/echo.ll b/llvm/test/Bindings/llvm-c/echo.ll
index df6de857af9..54d37dc7688 100644
--- a/llvm/test/Bindings/llvm-c/echo.ll
+++ b/llvm/test/Bindings/llvm-c/echo.ll
@@ -2,6 +2,9 @@
; RUN: llvm-as < %s | llvm-c-test --echo > %t.echo
; RUN: diff -w %t.orig %t.echo
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.11.0"
+
%S = type { i64, %S* }
define { i64, %S* } @unpackrepack(%S %s) {
OpenPOWER on IntegriCloud