From eb1ff93d02b5f17b6b409e83c6d9be585f4a04b3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:12:21 +0000 Subject: Vendor import of lld trunk r321017: https://llvm.org/svn/llvm-project/lld/trunk@321017 --- test/wasm/Inputs/hello.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/wasm/Inputs/hello.ll (limited to 'test/wasm/Inputs/hello.ll') diff --git a/test/wasm/Inputs/hello.ll b/test/wasm/Inputs/hello.ll new file mode 100644 index 000000000000..93df0f559809 --- /dev/null +++ b/test/wasm/Inputs/hello.ll @@ -0,0 +1,15 @@ +; Wasm module generated from the following C code: +; void puts(const char*); +; void hello() { puts("hello\n"); } + +@hello_str = unnamed_addr constant [7 x i8] c"hello\0A\00", align 1 + +; Function Attrs: nounwind +define hidden void @hello() local_unnamed_addr #0 { +entry: + tail call void @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @hello_str, i32 0, i32 0)) + ret void +} + +; Function Attrs: nounwind +declare void @puts(i8* nocapture readonly) local_unnamed_addr #1 -- cgit v1.3