Files
clang-p2996/lld/test/wasm/Inputs/comdat2.ll
Sam Clegg 70683b2f75 [WebAssembly] Use inline target tripple in test cases
This is somewhat preferable since (in many cases) it allows llc
to be run directly on the .ll files without having to pass the
`-mtriple` argument.

Differential Revision: https://reviews.llvm.org/D42438

llvm-svn: 323299
2018-01-24 03:29:47 +00:00

14 lines
331 B
LLVM

target triple = "wasm32-unknown-unknown-wasm"
$inlineFn = comdat any
@constantData = weak_odr constant [3 x i8] c"abc", comdat($inlineFn)
define linkonce_odr i32 @inlineFn() comdat {
entry:
ret i32 ptrtoint ([3 x i8]* @constantData to i32)
}
define i32 @callInline2() {
entry:
ret i32 ptrtoint (i32 ()* @inlineFn to i32)
}