Sunday 15 July 2012

Link error while compiling llvm with a new optimization pass -



Link error while compiling llvm with a new optimization pass -

i have written new llvm optimization pass. have added pass making new directory @ next location: llvm/lib/transform/addsub

i next steps mentioned in llvm documentation: http://llvm.org/docs/writinganllvmpass.html

but while compiling getting linking errors. may build , makefile settings not correct.

relocation r_x86_64_pc32 against undefined symbol `_ztvn12_global__n_18addsube' can not used when making shared object; recompile -fpic

if have written independent llvm pass , added in new directory within llvm at: llvm/lib/transform/

what makefile or build changes need create while writing independent pass?

i ran same error when trying follow writing llvm pass guide. me, prepare adding line this:

char mypassname::id = 0;

(i had skipped on step in directions.)

llvm llvm-ir

No comments:

Post a Comment