[LLVMdev] Another two questions on LLVM
Sebastian Redl
sebastian.redl at getdesigned.at
Mon Jun 7 12:33:14 PDT 2010
Xiaolong Tang wrote:
> First, how does LLVM handle the "new statement" of C++? Could any one
> give me any hint?
>
It doesn't. Handling C++'s new expression (not statement) is up to the
compiler frontend. Clang handles it by emitting a call to the
runtime-provided operator new function (which is probably implemented in
terms of malloc) followed by a constructor call, if applicable.
> Third, does LLVM provide any strategy to resolve function calls? If
> yes, what strategies does it employ?
>
What do you mean by resolve?
Sebastian
More information about the llvm-dev
mailing list