kestutisbalt / llvm-list-functions-sample

Sample of listing functions name from llvm bitcode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a sample of extracting function names from llvm bitcode.

Dependencies

  • clang 3.5
  • cmake

Compile

Linux

mkdir build && cd build
cmake ../ && make

Usage

  1. Create test file: test.cpp:
void test_function()
{
}

void test_function1()
{
}
  1. Generate llvm bitcode:
clang++-3.5 -c -emit-llvm test.cpp -o test.bc
  1. Run sample:
./llvm-list-functions-sample test.bc

About

Sample of listing functions name from llvm bitcode.


Languages

Language:C++ 72.4%Language:CMake 27.6%