mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[utils] Update SmallVector lldb formatter for r337514
SmallVector was changed to store a begin and a size rather than a begin and an end a while back. Update the formatter to look at the correct members. llvm-svn: 346252
This commit is contained in:
parent
300bdd124d
commit
302a2bf57b
@ -26,9 +26,7 @@ class SmallVectorSynthProvider:
|
||||
self.update() # initialize this provider
|
||||
|
||||
def num_children(self):
|
||||
begin = self.begin.GetValueAsUnsigned(0)
|
||||
end = self.end.GetValueAsUnsigned(0)
|
||||
return (end - begin)/self.type_size
|
||||
return self.size.GetValueAsUnsigned(0)
|
||||
|
||||
def get_child_index(self, name):
|
||||
try:
|
||||
@ -49,7 +47,7 @@ class SmallVectorSynthProvider:
|
||||
|
||||
def update(self):
|
||||
self.begin = self.valobj.GetChildMemberWithName('BeginX')
|
||||
self.end = self.valobj.GetChildMemberWithName('EndX')
|
||||
self.size = self.valobj.GetChildMemberWithName('Size')
|
||||
the_type = self.valobj.GetType()
|
||||
# If this is a reference type we have to dereference it to get to the
|
||||
# template parameter.
|
||||
|
Loading…
x
Reference in New Issue
Block a user