获取llvm ::函数静态地址

时间:2017-09-17 03:10:30

标签: c++ c llvm static-analysis llvm-ir

有没有办法使用LLVM IR API在C代码中获取llvm::Function对象指向的函数的静态地址?

1 个答案:

答案 0 :(得分:1)

由于<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package Shape * @since Shape 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <script type="text/javascript"> alert("asdasdsa");</script> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <div> asldjaslkdj </div> <?php get_sidebar(); ?> <?php get_footer(); ?> llvm::Function*的子类,您可以将其视为llvm::Value*,LLVM将替换正确的地址。

llvm::Function Documentation