LLVM: error loading optimization on OSX

I am trying to run this LLVM toolkit project , but I can download toolkit optimization for Linux.

I compiled and installed LLVM 3.2 and Clang 3.2 on OSX and have the same version on Linux.

When I try to run on Linux:

command opt -load ./obj/llvminstrument/libllvminstrument.so -help |grep instrum
    -insert-edge-profiling                     - Insert instrumentation for edge profiling
    -insert-gcov-profiling                     - Insert instrumentation for GCOV profiling
    -insert-optimal-edge-profiling             - Insert optimal instrumentation for edge profiling
    -insert-path-profiling                     - Insert instrumentation for Ball-Larus path profiling
    -instrument_block                          - Injects block instrumentation instructions
    -instrument_function                       - Injects function instrumentation instructions
    -instrument_prepare                        - Prepares instrumentation instructions

The same command in OSX:

command opt -load ./obj/llvminstrument/libllvminstrument.dylib -help |grep instrum    โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'track-memory' defined more than once!                                                  โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'debug-buffer-size' defined more than once!                                             โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-all-options' defined more than once!                                             โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-options' defined more than once!                                                 โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-after-all' defined more than once!                                               โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-before-all' defined more than once!                                              โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'track-memory' defined more than once!                                                  โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'debug-buffer-size' defined more than once!                                             โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-all-options' defined more than once!                                             โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-options' defined more than once!                                                 โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-after-all' defined more than once!                                               โ”‚ยทยทยทยทยทยทยทยท
opt: CommandLine Error: Argument 'print-before-all' defined more than once!                                              โ”‚ยทยทยทยทยทยทยทยท
    -insert-edge-profiling                     - Insert instrumentation for edge profiling                               โ”‚ยทยทยทยทยทยทยทยท
    -insert-gcov-profiling                     - Insert instrumentation for GCOV profiling                               โ”‚ยทยทยทยทยทยทยทยท
    -insert-optimal-edge-profiling             - Insert optimal instrumentation for edge profiling                       โ”‚ยทยทยทยทยทยทยทยท
    -insert-path-profiling                     - Insert instrumentation for Ball-Larus path profiling
+5
source share
1 answer

, , , LLVM dylib , , "dlopen'ed the opt . , , . , LLVM, , OS X, / .

+1

All Articles