diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-05-16 20:31:18 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-05-16 20:31:18 +0000 |
commit | fac7b3aae60146638ce1446b2347ad43ccdd32ca (patch) | |
tree | 0a54544419398ffc615df08290ae5d2797eb52db /llvm/lib/Transforms/Utils/LCSSA.cpp | |
parent | 9ac944774f4b985e379c2bf316fd340baaeb901c (diff) | |
download | bcm5719-llvm-fac7b3aae60146638ce1446b2347ad43ccdd32ca.tar.gz bcm5719-llvm-fac7b3aae60146638ce1446b2347ad43ccdd32ca.zip |
Add implementation of built-in function len() for those lldb containers with
unambiguous iteration support. So that we could, for example:
...
REGs = lldbutil.get_GPRs(frame)
print "Number of general purpose registers: %d" % len(REGs)
for reg in REGs:
print "%s => %s" %(reg.GetName(), reg.GetValue())
...
llvm-svn: 131418
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
0 files changed, 0 insertions, 0 deletions