[llvm-commits] [llvm] r71410 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp

Chris Lattner clattner at apple.com
Mon May 11 13:53:17 PDT 2009


On May 10, 2009, at 4:14 PM, Bill Wendling wrote:

> This doesn't take care of all of the problems with debug info for  
> inlined
> functions, but it's a step in the right direction. For one thing,  
> llvm-gcc
> generates wrong IR (it's missing some llvm.dbg intrinsics at the  
> point where the
> function's inlined) for this example:
>
> #include <stdio.h>
> static __inline__ __attribute__((always_inline))  int bar(int x)  
> { return 4; }
> void foo() {
>  long long b = 1;
>  int Y = bar(4);
>  printf("%d\n", Y);
> }

The body for "bar" is gone by the time llvm_asm_file_end is called: I  
think the tree inliner is still being used???

-Chris



More information about the llvm-commits mailing list