how to remove inlined function

Hi!

I'm using clang/llvm 3.0 release and I have a module that is generated by clang
with some functions declared as inline. after inlining (llvm::createFunctionInliningPass)
I'd like to remove the functions that were inlined. how can this be done?
surprisingly they are removed if a print pass (llvm::createPrintModulePass) is
present. is there an explanation for this?

-Jochen

Hi Jochen,

I'm using clang/llvm 3.0 release and I have a module that is generated
by clang
with some functions declared as inline. after inlining
(llvm::createFunctionInliningPass)
I'd like to remove the functions that were inlined. how can this be done?
surprisingly they are removed if a print pass
(llvm::createPrintModulePass) is
present. is there an explanation for this?

why do you think they are not removed?

Ciao, Duncan.