[PATCH] D29104: Add !associated metadata.
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 05:17:49 PST 2017
Evgeniy Stepanov via Phabricator <reviews at reviews.llvm.org> writes:
> +; RUN: llc -data-sections=1 -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s --check-prefix=ASM
> +; RUN: llc -data-sections=0 -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s --check-prefix=ASM
> +
> +; RUN: llc -data-sections=1 -mtriple x86_64-pc-linux-gnu -filetype=obj < %s | llvm-readobj -sections | FileCheck %s --check-prefixes=OBJ,OBJ1
> +; RUN: llc -data-sections=0 -mtriple x86_64-pc-linux-gnu -filetype=obj < %s | llvm-readobj -sections | FileCheck %s --check-prefixes=OBJ,OBJ0
Do you really need to test with "llc -filetype=obj"?
> + at a = global i32 1
> + at b = global i32 2, !associated !0
> +!0 = !{i32* @a}
> +; ASM-DAG: .section .data.b,"awm", at progbits,a
Is that what you want? This marks .data.b as a metadata section.
Cheers,
Rafael
More information about the llvm-commits
mailing list