<div dir="ltr">Thank you David and Joerg!<div><br></div><div>Best,</div><div><br></div><div>Syed</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 28, 2019 at 6:45 PM Joerg Sonnenberger via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Oct 28, 2019 at 06:36:45PM -0400, Syed Ahmed via llvm-dev wrote:<br>
> I'm a LLVM newbie and am working on a LLVM 3.5 code base. The project (<br>
> <a href="https://github.com/zhguanw/lin-analyzer" rel="noreferrer" target="_blank">https://github.com/zhguanw/lin-analyzer</a>) makes use of clang and reads C<br>
> code. I'm trying to make it read C++ code. When I compile a kernel written<br>
> in C with clang++, I get the following difference in the IR for a function<br>
> declaration:<br>
<br>
clang++ will implicitly force C++ mode for all input. If you really want<br>
to use it to compile C code and not have mangled names, you need to add<br>
the appropiate extern "C" markers.<br>
<br>
Joerg<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>