add the ability to snag the frame so we can verify that we are inlining
This commit is contained in:
parent
3d104cfb41
commit
7d0958f70f
5 changed files with 37 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "rust_util.h"
|
||||
#include "rust_scheduler.h"
|
||||
#include "sync/timer.h"
|
||||
#include "rust_abi.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <crt_externs.h>
|
||||
|
@ -681,6 +682,11 @@ rust_dbg_call(dbg_callback cb, void *data) {
|
|||
return cb(data);
|
||||
}
|
||||
|
||||
extern "C" CDECL void *
|
||||
rust_frame_address() {
|
||||
return __builtin_frame_address(1);
|
||||
}
|
||||
|
||||
//
|
||||
// Local Variables:
|
||||
// mode: C++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue