HomePhabricator

[IRMemoryMap] Use labels in the "malloc" and "free" lldb-test commands

Description

[IRMemoryMap] Use labels in the "malloc" and "free" lldb-test commands

Change the syntax of the malloc and free commands in lldb-test's
ir-memory-map subcommand to:

<malloc> ::= <label> = malloc <size> <alignment>

<free> ::= free <label>

This should make it easier to read and extend tests in the future, e.g
to test IRMemoryMap::WriteMemory or double-free behavior.

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

Details

Committed
vedantkJun 4 2018, 10:11 AM
Differential Revision
D47646: [IRMemoryMap] Use labels in the "malloc" and "free" lldb-test commands
Parents
rL333929: [MachO] Add out-of-bounds check to MachOObjectFile.cpp
Branches
Unknown
Tags
Unknown