llvm.org GIT mirror llvm / 2ee19a3
[opt-viewer] Set title for the source pages git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326125 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 1 year, 5 months ago
5 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
''', file=self.stream)'''.format(os.path.basename(self.filename)), file=self.stream)
4343
4444 class SourceFileRenderer:
4545 def __init__(self, source_dir, output_dir, filename, no_highlight):
46 self.filename = filename
4647 existing_filename = None
4748 if os.path.exists(filename):
4849 existing_filename = filename
130131
131132 print('''
132133
134 {}
133135
134136
135137
146148 Inline Context
147149
148150
149
151
150152 self.render_source_lines(self.source_stream, line_remarks)
151153
152154 print('''