[lld] r289722 - [LTO] Catch up with llvm. Modules without DL are now considered invalid.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 13:58:26 PST 2016
Author: davide
Date: Wed Dec 14 15:58:26 2016
New Revision: 289722
URL: http://llvm.org/viewvc/llvm-project?rev=289722&view=rev
Log:
[LTO] Catch up with llvm. Modules without DL are now considered invalid.
Modified:
lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll
Modified: lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll?rev=289722&r1=289721&r2=289722&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll (original)
+++ lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll Wed Dec 14 15:58:26 2016
@@ -1,13 +1,11 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t
-; RUN: llvm-objdump -d %t | FileCheck %s
+; RUN: not ld.lld -m elf_x86_64 %t.o -o %t 2>&1 | FileCheck %s
-; CHECK: _start:
-; CHECK-NEXT: retq
+; CHECK: input module has no datalayout
; This bitcode file has no datalayout.
-; Check that we produce a valid binary out of it.
+; Check that we error out producing a reasonable diagnostic.
target triple = "x86_64-unknown-linux-gnu"
define void @_start() {
More information about the llvm-commits
mailing list