0

Anybody knows how to determine what would be the result of name mangling on a c++ function, be it in class or in a global context?

For example after compiling the following function

string myFunction2();

We will have:

__Z11myFunction2v

as the mangled name in the object file.

Is there someway (like a tool) whiteout messing with the actual llvm internals?

  • I need an API and I just have the header not the body. The example requires the body to at least have something returned for clang to compile it. – user4800 Jan 19 '14 at 16:01
  • 1
    @user4800 Can you explain why you need the mangled name? There might be an alternate solution to your problem. – Praetorian Jan 19 '14 at 16:38
  • I'm writing a lisp wrapper for C++ code. Mainly OpenCV. – user4800 Jan 19 '14 at 17:16

0 Answers0