diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-02-28 11:58:50 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-02-29 11:54:47 -0800 |
| commit | 7d0958f70ff16ee40649a943306c9b104a5fc829 (patch) | |
| tree | 6698c2b8f3cd7134d3e9937e774d9c57048996f4 /src/rt/rust_builtin.cpp | |
| parent | 3d104cfb410211cb313a50c6cdb8b652f62ce9f4 (diff) | |
| download | rust-7d0958f70ff16ee40649a943306c9b104a5fc829.tar.gz rust-7d0958f70ff16ee40649a943306c9b104a5fc829.zip | |
add the ability to snag the frame so we can verify that we are inlining
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 29940492f79..a1b2d9eb45a 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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++ |
