diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-07-15 22:14:49 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-15 22:14:49 +0000 |
commit | 37643a04a499a61ad800bcb526fe36e74b0b3636 (patch) | |
tree | 0b1bab2bf62904b5c896b61f5272ad7ef67546bc /llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir | |
parent | b9de106d046af99cf990f2a53b37ed804cb817f2 (diff) | |
download | bcm5719-llvm-37643a04a499a61ad800bcb526fe36e74b0b3636.tar.gz bcm5719-llvm-37643a04a499a61ad800bcb526fe36e74b0b3636.zip |
MIR Serialization: Serialize references from the stack objects to named allocas.
This commit serializes the references to the named LLVM alloca instructions from
the stack objects in the machine frame info. This commit adds a field 'Name' to
the struct 'yaml::MachineStackObject'. This new field is used to store the name
of the alloca instruction when the alloca is present and when it has a name.
llvm-svn: 242339
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir')
-rw-r--r-- | llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir b/llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir index 4c45742b25a..5e6467e9cfa 100644 --- a/llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir +++ b/llvm/test/CodeGen/MIR/X86/variable-sized-stack-objects.mir @@ -26,11 +26,11 @@ frameInfo: # CHECK: stack: # CHECK-NEXT: - { id: 0, offset: -20, size: 4, alignment: 4 } # CHECK-NEXT: - { id: 1, offset: -32, size: 8, alignment: 8 } -# CHECK-NEXT: - { id: 2, type: variable-sized, offset: -32, alignment: 1 } +# CHECK-NEXT: - { id: 2, name: y, type: variable-sized, offset: -32, alignment: 1 } stack: - { id: 0, offset: -20, size: 4, alignment: 4 } - { id: 1, offset: -32, size: 8, alignment: 8 } - - { id: 2, type: variable-sized, offset: -32, alignment: 1 } + - { id: 2, name: y, type: variable-sized, offset: -32, alignment: 1 } body: - id: 0 name: entry |