[llvm-commits] Implement the GET_CALLER_PC macro, stub the GET_CURRENT_FRAME macro (issue 5630065)

Kostya Serebryany kcc at google.com
Tue Feb 7 10:05:31 PST 2012


Much better.
Now, how about using _AddressOfReturnAddress() for the frame?

--kcc

On Tue, Feb 7, 2012 at 9:56 AM, Timur Iskhodzhanov <timurrrr at google.com>wrote:

> PTAL,
> though personally I don't like how it looks now.
>
> On Tue, Feb 7, 2012 at 9:36 PM, Kostya Serebryany <kcc at google.com> wrote:
> >
> >
> > On Tue, Feb 7, 2012 at 4:51 AM, <timurrrr at google.com> wrote:
> >>
> >>
> >> http://codereview.appspot.com/5630065/diff/1/lib/asan/asan_internal.h
> >> File lib/asan/asan_internal.h (right):
> >>
> >>
> >>
> http://codereview.appspot.com/5630065/diff/1/lib/asan/asan_internal.h#newcode24
> >> lib/asan/asan_internal.h:24: # include <intrin.h>
> >> On 2012/02/06 19:18:31, kcc wrote:
> >>>
> >>> Can we avoid this include in the header?
> >>> ( I am not sure we can, just asking)
> >>
> >> I doubt so.
> >> Or we'll need to #include it in every file which uses GET_CURRENT_PC or
> >> GET_BP_PC_SP.
> >
> >
> > Maybe you can find how this thing is defined in intrin.h and use similar
> > definition?
> >
> >
> > --kcc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120207/806fc65d/attachment.html>


More information about the llvm-commits mailing list