https://bugs.llvm.org/show_bug.cgi?id=35770

            Bug ID: 35770
           Summary: running clang -g on a text-format LLVM IR input should
                    add debug information
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: llvm-bugs@lists.llvm.org

$ clang -g foo.ll

... should add debug information, pointing back to the .ll file, in the same
way that

$ clang -g foo.s

... already adds debug information pointing back to the relevant line in the .s
file. This would make it possible to perform "source"-level single-step
debugging through llvm IR in the user's debugger of choice. (And for
optimizations that properly preserve debug information, would allow a limited
amount of mapping from optimized IR back into the original IR.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to