mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-07 12:07:17 +00:00
e54abc90fe
Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
327 B
LLVM
14 lines
327 B
LLVM
; RUN: llvm-as < %s | llvm-dis | not grep undef
|
|
|
|
declare i8 @llvm.something(metadata %a, i32 %b, metadata %c)
|
|
|
|
;; Simple MDNode
|
|
!21 = metadata !{i17 123, null, metadata !"foobar"}
|
|
|
|
define void @foo() {
|
|
;; Intrinsic using MDNode and MDString
|
|
%x = call i8 @llvm.something(metadata !21, i32 42, metadata !"bar")
|
|
ret void
|
|
}
|
|
|