diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-28 04:09:09 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-28 04:09:09 -0400 |
| commit | d7a539906d2dd49872abb161f3d3364c9641ccd2 (patch) | |
| tree | 0d9c04fdc537326431a34ca2e7797c976fa4b91b /deps/lld/test/COFF/thinlto-mangled.ll | |
| parent | 2a49c876be76dc98996a3251310728ad32b22363 (diff) | |
| parent | 1525e2c0561bb598b1e94ad9cdced5dd22e7d66d (diff) | |
| download | zig-d7a539906d2dd49872abb161f3d3364c9641ccd2.tar.gz zig-d7a539906d2dd49872abb161f3d3364c9641ccd2.zip | |
Merge branch 'embed-lld'
Zig now depends on LLVM 5.0.0.
For the latest version that supports LLVM 4.0.1, use
2a49c876be76dc98996a3251310728ad32b22363.
Unfortunately we had to embed LLD into Zig due to some
MACH-O related LLD bugs. One of them is already upstream
and another is awaiting feedback on the llvm-dev mailing
list.
You can use cmake option -DZIG_FORCE_EXTERNAL_LLD=ON to
still use external LLD if you want to live with the MACH-O
bugs or if your system LLD is patched.
Closes #273
Diffstat (limited to 'deps/lld/test/COFF/thinlto-mangled.ll')
| -rw-r--r-- | deps/lld/test/COFF/thinlto-mangled.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/lld/test/COFF/thinlto-mangled.ll b/deps/lld/test/COFF/thinlto-mangled.ll new file mode 100644 index 0000000000..8c901cbd70 --- /dev/null +++ b/deps/lld/test/COFF/thinlto-mangled.ll @@ -0,0 +1,17 @@ +; REQUIRES: x86 +; RUN: opt -thinlto-bc %s -o %t.obj +; RUN: opt -thinlto-bc %S/Inputs/thinlto-mangled-qux.ll -o %T/thinlto-mangled-qux.obj +; RUN: lld-link -out:%t.exe -entry:main %t.obj %T/thinlto-mangled-qux.obj + +target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-pc-windows-msvc19.0.24215" + +%"class.bar" = type { i32 (...)**, i8*, i8*, i8*, i32 } + +define i32 @main() { + ret i32 0 +} + +define available_externally zeroext i1 @"\01?x@bar@@UEBA_NXZ"(%"class.bar"* %this) unnamed_addr align 2 { + ret i1 false +} |
