aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-27 21:44:09 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-27 21:44:09 +0000
commitb2e1a5c998dd45915e1da4d0b10297b3abe9a65e (patch)
tree647bfba41b758379bafe510e0fe3f0bfcfcc1180 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent39897767709b6e44e8675c326284bc5410a6e50c (diff)
downloadllvm-b2e1a5c998dd45915e1da4d0b10297b3abe9a65e.zip
llvm-b2e1a5c998dd45915e1da4d0b10297b3abe9a65e.tar.gz
llvm-b2e1a5c998dd45915e1da4d0b10297b3abe9a65e.tar.bz2
Add a utility function smart_iter() which has knowledge of the getsize and the getelem
method names of all the lldb container objects and returns an iterator object when passed an eligible lldb container object. Example: from lldb_util import smart_iter for thread in smart_iter(process): ID = thread.GetThreadID() if thread.GetStopReason() == lldb.eStopReasonBreakpoint: stopped_due_to_breakpoint = True for frame in smart_iter(thread): self.assertTrue(frame.GetThread().GetThreadID() == ID) ... Add a test case for lldb.smart_iter(). llvm-svn: 130332
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions