mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
cf322e810a
Object FIle Representation At codegen time this is emitted into the ELF file a pair of symbol indices and a weight. In assembly it looks like: .cg_profile a, b, 32 .cg_profile freq, a, 11 .cg_profile freq, b, 20 When writing an ELF file these are put into a SHT_LLVM_CALL_GRAPH_PROFILE (0x6fff4c02) section as (uint32_t, uint32_t, uint64_t) tuples as (from symbol index, to symbol index, weight). Differential Revision: https://reviews.llvm.org/D44965 llvm-svn: 333823
8 lines
299 B
ArmAsm
8 lines
299 B
ArmAsm
# RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
.cg_profile a, .L.temp, 32
|
|
|
|
# CHECK: cgprofile-error.s:3:18: error: Reference to undefined temporary symbol `.L.temp`
|
|
# CHECK-NEXT: .cg_profile a, .L.temp, 32
|
|
# CHECK-NEXT: ^
|