mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
e6c28a171e
llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. llvm-svn: 155147
11 lines
300 B
LLVM
11 lines
300 B
LLVM
; Test that linking two files with the same definition causes an error and
|
|
; that error is printed out.
|
|
; RUN: llvm-as %s -o %t.one.bc
|
|
; RUN: llvm-as %s -o %t.two.bc
|
|
; RUN: not llvm-link %t.one.bc %t.two.bc -o %t.bc |& FileCheck %s
|
|
|
|
; CHECK: symbol multiply defined
|
|
define i32 @bar() {
|
|
ret i32 0
|
|
}
|