Displaying 3 results from an estimated 3 matches for "globalfunct".
Did you mean:
globalfunc1
2008 Feb 22
2
[LLVMdev] Calling functions
...make some calls to functions like glclear() as I'm using opengl:
...
Function *F = new Function( FT, Function::ExternalLinkage, "glclear", M );
...
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.
And another question:
is it possible to call a function of an instance of a C++ class? Which are the limits of interaction between generated code and "precompiled" code (I mean...
2008 Feb 25
0
[LLVMdev] Calling functions
...or
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...
2008 Feb 25
0
[LLVMdev] Calling functions
...g opengl:
| ...
| Function *F = new Function( FT, Function::ExternalLinkage, "glclear", M );
| ...
|
| 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()
See this older message:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-December/011616.html
*************************
It seems that the previous message was sent with some corruption, sorry for it. It it happens again I'll use another e-mail.
Thanks for your reply, Ben...