[LLVM_PASS]build pass on Windows

2019-10-05  本文已影响0人  HAPPYers

最后的效果

opt -help

...
    -mypass                                         - Print all function names.
...
λ opt -mypass C:\Users\pcy19\Desktop\test.ll -debug-pass=Structure
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

Pass Arguments:  -targetlibinfo -tti -targetpassconfig -mypass -verify
Target Library Information
Target Transform Information
Target Pass Configuration
  ModulePass Manager
    FunctionPass Manager
      Print all function names.
      Module Verifier
Hello: foo
Hello: main

编译为dll

上一篇 下一篇

猜你喜欢

热点阅读