forked from M-Labs/artiq
1
0
Fork 0

llvm_ir_generator: fix DICompileUnit.language.

This commit is contained in:
whitequark 2016-04-02 19:05:08 +00:00
parent d095d481ff
commit 72b952e850
1 changed files with 1 additions and 7 deletions

View File

@ -22,12 +22,6 @@ llptr = ll.IntType(8).as_pointer()
llmetadata = ll.MetaData() llmetadata = ll.MetaData()
DW_LANG_Python = 0x0014
DW_TAG_compile_unit = 17
DW_TAG_subroutine_type = 21
DW_TAG_file_type = 41
DW_TAG_subprogram = 46
def memoize(generator): def memoize(generator):
def memoized(self, *args): def memoized(self, *args):
key = (generator,) + args key = (generator,) + args
@ -74,7 +68,7 @@ class DebugInfoEmitter:
@memoize @memoize
def emit_compile_unit(self, source_buffer, llsubprograms): def emit_compile_unit(self, source_buffer, llsubprograms):
return self.emit_debug_info("DICompileUnit", { return self.emit_debug_info("DICompileUnit", {
"language": ll.DIToken("DW_LANG_C99"), "language": ll.DIToken("DW_LANG_Python"),
"file": self.emit_file(source_buffer), "file": self.emit_file(source_buffer),
"producer": "ARTIQ", "producer": "ARTIQ",
"runtimeVersion": 0, "runtimeVersion": 0,