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

Bill Wendling isanbard at gmail.com
Mon May 11 13:54:37 PDT 2009


On Mon, May 11, 2009 at 1:53 PM, Chris Lattner <clattner at apple.com> wrote:
>
> 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???
>
Pain! >.<

Duncan, I think you're the expert in this area. Do you have an idea
about this? :-)

-bw




More information about the llvm-commits mailing list