[llvm-dev] Function name demangle on clang vs clang++
Syed Ahmed via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 28 15:49:52 PDT 2019
Thank you David and Joerg!
On Mon, Oct 28, 2019 at 6:45 PM Joerg Sonnenberger via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> On Mon, Oct 28, 2019 at 06:36:45PM -0400, Syed Ahmed via llvm-dev wrote:
> > I'm a LLVM newbie and am working on a LLVM 3.5 code base. The project (
> > https://github.com/zhguanw/lin-analyzer) makes use of clang and reads C
> > code. I'm trying to make it read C++ code. When I compile a kernel
> > in C with clang++, I get the following difference in the IR for a
> > declaration:
> clang++ will implicitly force C++ mode for all input. If you really want
> to use it to compile C code and not have mangled names, you need to add
> the appropiate extern "C" markers.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev