diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-11-03 17:56:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-11-03 17:56:16 +0000 |
commit | 86c119a507570144b02645dd262e7d0b8864aa2d (patch) | |
tree | a17c6403c9ba44925ff3c97bf0e001660359e51b /utils/llvm-build/llvmbuild/componentinfo.py | |
parent | 1cf14aff1bd7aa9343262f26f39c7f10fae68c0e (diff) |
llvm-build: Fill in some details w.r.t. component's parents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-build/llvmbuild/componentinfo.py')
-rw-r--r-- | utils/llvm-build/llvmbuild/componentinfo.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/llvm-build/llvmbuild/componentinfo.py b/utils/llvm-build/llvmbuild/componentinfo.py index 22ce0b4fde..30ec23b833 100644 --- a/utils/llvm-build/llvmbuild/componentinfo.py +++ b/utils/llvm-build/llvmbuild/componentinfo.py @@ -37,6 +37,15 @@ class ComponentInfo(object): # under. self.parent = parent + # The parent instance, once loaded. + self.parent_instance = None + self.children = [] + + def set_parent_instance(self, parent): + assert parent.name == self.parent, "Unexpected parent!" + self.parent_instance = parent + self.parent_instance.children.append(self) + def get_component_references(self): """get_component_references() -> iter |