diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-07-22 00:47:58 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-22 00:47:58 +0000 |
| commit | 989b7efd8ac6201d37c201d5ddf7bec6966eb106 (patch) | |
| tree | bbb6e548d53d244eb8000846554760e7ed862663 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
| parent | 1eb27ae5808c50a2eedb4f2919582ac69ce1bb16 (diff) | |
| download | bcm5719-llvm-989b7efd8ac6201d37c201d5ddf7bec6966eb106.tar.gz bcm5719-llvm-989b7efd8ac6201d37c201d5ddf7bec6966eb106.zip | |
Add BasicFormatter and ChildVisitingFormatter utility classes to the lldbutil.py module
which provide some convenient ways to print an SBValue object. Use that in TestValueAPI.py
to print the 'days_of_week' char* array variable.
For an example:
cvf = lldbutil.ChildVisitingFormatter(indent=2)
print cvf.format(days_of_week)
produces:
(const char *[7]) days_of_week = 0x00000001026a5060 (location)
(const char *) [0] = "Sunday"
(const char *) [1] = "Monday"
(const char *) [2] = "Tuesday"
(const char *) [3] = "Wednesday"
(const char *) [4] = "Thursday"
(const char *) [5] = "Friday"
(const char *) [6] = "Saturday"
llvm-svn: 135736
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions

