[Lldb-commits] [PATCH] D47646: [IRMemoryMap] Use labels in the "malloc" and "free" lldb-test commands

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 1 11:36:13 PDT 2018


vsk created this revision.
vsk added a reviewer: labath.

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.


https://reviews.llvm.org/D47646

Files:
  lit/Expr/Inputs/ir-memory-map-basic
  lit/Expr/Inputs/ir-memory-map-mix-malloc-free
  lit/Expr/Inputs/ir-memory-map-overlap1
  tools/lldb-test/lldb-test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47646.149517.patch
Type: text/x-patch
Size: 15257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180601/5c13d48e/attachment-0001.bin>


More information about the lldb-commits mailing list