How to duplicate a function?

Hi all,

I am a newbie in LLVM and I am trying to replace the function like:

old function || new function

duplicateFunction.cpp (9.35 KB)

test.c (325 Bytes)

test.c (325 Bytes)

Makefile (1.42 KB)