aboutsummaryrefslogtreecommitdiff
path: root/utils/llvm-build/llvmbuild/componentinfo.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-12-12 22:45:35 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-12-12 22:45:35 +0000
commita3217165c6d2ef7caf58665eb0a61c64ab229b9f (patch)
treec04b1f36179778d980fd54fabef9ebf44d8b0d87 /utils/llvm-build/llvmbuild/componentinfo.py
parentdcfc2eaf628d29aa83381f2e74e952ba70e55702 (diff)
llvm-build: Add sketchy support for preserving comments when using
--write-llvmbuild. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-build/llvmbuild/componentinfo.py')
-rw-r--r--utils/llvm-build/llvmbuild/componentinfo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/llvm-build/llvmbuild/componentinfo.py b/utils/llvm-build/llvmbuild/componentinfo.py
index 079102f676..e9ef973d08 100644
--- a/utils/llvm-build/llvmbuild/componentinfo.py
+++ b/utils/llvm-build/llvmbuild/componentinfo.py
@@ -42,6 +42,9 @@ class ComponentInfo(object):
self.parent_instance = None
self.children = []
+ # The original source path.
+ self._source_path = None
+
def set_parent_instance(self, parent):
assert parent.name == self.parent, "Unexpected parent!"
self.parent_instance = parent
@@ -407,4 +410,5 @@ def load_from_path(path, subpath):
fatal("unable to load component %r in %r: %s" % (
section, path, e.message))
+ info._source_path = path
yield info