Skip to content
Snippets Groups Projects
Select Git revision
  • release_39
  • master default
  • rtlib
  • mutate
  • containers
5 results

llvm_pass_structfields

  • Clone with SSH
  • Clone with HTTPS
  • Vikram Narayanan's avatar
    Vikram Narayanan authored
    s/SkeletonPass/StructFieldNamePass
    Also update readme
    
    Signed-off-by: default avatarVikram Narayanan <vikram186@gmail.com>
    8e6d69dc
    History

    llvm_pass_structfields

    Code skeleton is based on Adrian's llvm-pass-skeleton http://www.cs.cornell.edu/~asampson/blog/llvm.html

    A LLVM pass to extract struct field names using Metadata. Compile it with -g flags to add debug metadata to LLVM IR.

    Build:

    $ cd llvm_pass_structfields
    $ mkdir build
    $ cd build
    $ cmake ..
    $ make
    $ cd ..

    Run:

    $ clang -g -Xclang -load -Xclang build/structfieldnames/libStructFieldNamesPass.* something.c