Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

debug info for EH is not emitted #14179

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR14151
Status NEW
Importance P enhancement
Reported by Olga (olga.a.chupina@gmail.com)
Reported on 2012-10-23 06:07:57 -0700
Last modified on 2012-10-24 02:50:46 -0700
Version trunk
Hardware Macintosh MacOS X
CC anton@korobeynikov.info, dgregor@apple.com, llvm-bugs@lists.llvm.org, pawel@32bitmicro.com, rafael@espindo.la
Fixed by commit(s)
Attachments test.bc (5591 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 9403
bitcode file

Consider the test:

$ cat test.cpp
#include <stdio.h>

int main(void)
{
    try {
        throw 1;
    }
    catch(int x) {
        printf("%d\n", x);
    }
    return 0;
}

Exception handling-related debug info is not emmited in clang
(DW_TAG_try_block, DW_TAG_catch_block). Bitcode file produced by clang is
attached.

Compilation line: clang -S  -O0 -g  test.cpp -emit-llvm -o test.bc

Olga Chupina
---
Software Engineer
Intel Compiler Team
Intel Corp.
Quuxplusone commented 11 years ago

Attached test.bc (5591 bytes, text/plain): bitcode file