http://llvm.org/bugs/show_bug.cgi?id=21566

            Bug ID: 21566
           Summary: Crash when stripping debug symbols from lazily loaded
                    module
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: extract
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13342
  --> http://llvm.org/bugs/attachment.cgi?id=13342&action=edit
The original C++ file

Compiling with LLVM and clang r221928, I get a crash if the attached file is
stripped of debug info while being lazily loaded.

Using llvm-extract seems to be the only want to demonstrate a lazy module
loading test right now.  If you patch llvm-extract with the attached patch,
then it will:
- Load the module lazily
- Strip the debug info
- Materialize the function.

Note that I'm calling it with
- clang++ lazy.cpp -o lazy.bc -emit-llvm -c -g
- llvm-extract -rfunc=".*foo" lazy.bc -o ext.bc

This is probably a bug in lazy materialization itself, or perhaps an
unsupported configuration.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to