search for: __znwj

Displaying 2 results from an estimated 2 matches for "__znwj".

Did you mean: _znwj
2012 May 01
1
[LLVMdev] Linking C++ on Windows
...rror LNK2019: unresolved external symbol __ZNSt12_String_base5_XranEv referenced in function __ZNSs6assignERKSsjj hello-066049.o : error LNK2019: unresolved external symbol __ZNSt12_String_base5_XlenEv referenced in function __ZNSs5_GrowEjb hello-066049.o : error LNK2019: unresolved external symbol __Znwj referenced in function __ZSt9_AllocateIcEPT_jS1_ hello-066049.o : error LNK2019: unresolved external symbol __ZNSt9exceptionC2ERKPKc referenced in function __ZNSt9bad_allocC2EPKc hello-066049.o : error LNK2019: unresolved external symbol __ZNSt9exceptionC2Ev referenced in function __ZNSt13runtime_e...
2010 Oct 15
5
[LLVMdev] How do I find all memory allocations in an llvm ir code file?
I tried to compile this snippet of C++ code: void FuncTest() {     int* a = new int;     int* b = new int[2]; } using: clang test.cpp -S -emit-llvm -o - > test.llvm and obtained this: define void @_Z8FuncTestv() { entry:   %a = alloca i32*, align 4   %b = alloca i32*, align 4   %call = call noalias i8* @_Znwj(i32 4)   %0 = bitcast i8* %call to i32*   store i32* %0, i32** %a, align 4