[LLVMdev] Calling functions
Gordon Henriksen
gordonhenriksen at mac.com
Fri Feb 22 12:03:43 PST 2008
On Feb 22, 2008, at 11:43, Álvaro Castro wrote:
> I'm trying LLVM for generating code and I found something I cannot
> figure out or find in the documentation:
>
> But if I want to call any function inside a C++ namespace I don't
> find the way to do it. Imagine you want to call
>
> othernamespace::globalFunction()
>
> How should I do it?
> I've tried all the linkage types, but it's clear that's not the
> solution.
Hi Álvaro,
Google for C++ name mangling to understand why what you're attempting
doesn't work. Looking at the output of llvm-gcc may help you get it
right, but it's probably easier to write C wrappers for your C++ code.
— Gordon
More information about the llvm-dev
mailing list