From 72b952e850fbd508af9d308df5233fc6a06c1ec1 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 2 Apr 2016 19:05:08 +0000 Subject: [PATCH] llvm_ir_generator: fix DICompileUnit.language. --- artiq/compiler/transforms/llvm_ir_generator.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 46e3f9b18..f1e37c89c 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -22,12 +22,6 @@ llptr = ll.IntType(8).as_pointer() 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 memoized(self, *args): key = (generator,) + args @@ -74,7 +68,7 @@ class DebugInfoEmitter: @memoize def emit_compile_unit(self, source_buffer, llsubprograms): return self.emit_debug_info("DICompileUnit", { - "language": ll.DIToken("DW_LANG_C99"), + "language": ll.DIToken("DW_LANG_Python"), "file": self.emit_file(source_buffer), "producer": "ARTIQ", "runtimeVersion": 0,