[llvm-commits] [llvm-gcc-4.2] r68848 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Devang Patel dpatel at apple.com
Tue Apr 14 12:02:16 PDT 2009


On Apr 14, 2009, at 10:27 AM, Devang Patel wrote:

>>> This info is used during FastISel to decide whether we are at the
>>> beginning of inlined subroutine or not.
>>>
>>>      std::string SPName;
>>>      Subprogram.getLinkageName(SPName);
>>>      if (!SPName.empty()
>>>          && strcmp(SPName.c_str(), MF.getFunction()-
>>>> getNameStart())) {
>>
>> Could this use
>>
>>    Subprogram.getGV() == MF.getFunction()
>>
>> instead?
>
> It won't work. The Subprogram does not have actual Fn. It only  
> carries information for function named "blah".

OK, found another way to handle this. I reverted 68848.
-
Devang





More information about the llvm-commits mailing list