[LLVMdev] weird function
Duncan Sands
baldrick at free.fr
Wed Jul 23 11:31:11 PDT 2008
> I have tried to compile a simple cpp file with llvm-gcc. I have attached
> the assemble file here.
> I see a weird thing there. There are some call instructions, they call the
> function "@_Znwj". But this function was only declared in the file, there is
> no definition of it. So, how can it work, if this function is "empty" ?
When you create a final executable using llvm-g++ it links with some standard
C++ libraries. Probably @_Znwj is defined in one of those libraries.
Ciao,
Duncan.
More information about the llvm-dev
mailing list