mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user