Skip to content

kestutisbalt/llvm-list-functions-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published