Displaying 4 results from an estimated 4 matches for "__zti".
Did you mean:
__sti
2011 Sep 30
0
[LLVMdev] RTTI handling
...) { return typeid(const char**); }
const std::type_info &test2() { return typeid(A); }
const std::type_info &test3() { return typeid(B); }
const std::type_info &test4() { return typeid(C); }
daysthatwere clang$ clang /tmp/red.cpp -c -o red.o
daysthatwere clang$ nm -m red.o | grep __ZTI | c++filt
0000000000000120 (__DATA,__datacoal_nt) weak external typeinfo for A
(undefined) external typeinfo for B
0000000000000150 (__DATA,__const) external typeinfo for C
(undefined) external typeinfo for char const*
0000000000000100 (__DATA,__datacoal_nt) weak e...
2011 Sep 30
2
[LLVMdev] RTTI handling
Thanks! Yes, we are trying to avoid that situation as much as possible.
Is there any compiler/linker/static analyzer option that would point out those problems (in 13 million lines, large part of that being legacy code)? Currently I don't know any better way than runtime logging and asserting.
Also, what shall we do we external source libraries (like Teigha from Open Design Alliance), where
2011 Sep 30
2
[LLVMdev] RTTI handling
...) { return typeid(const char**); }
const std::type_info &test2() { return typeid(A); }
const std::type_info &test3() { return typeid(B); }
const std::type_info &test4() { return typeid(C); }
daysthatwere clang$ clang /tmp/red.cpp -c -o red.o
daysthatwere clang$ nm -m red.o | grep __ZTI | c++filt
0000000000000120 (__DATA,__datacoal_nt) weak external typeinfo for A
(undefined) external typeinfo for B
0000000000000150 (__DATA,__const) external typeinfo for C
(undefined) external typeinfo for char const*
0000000000000100 (__DATA,__datacoal_nt) weak e...
2011 Oct 03
0
[LLVMdev] RTTI handling
...) { return typeid(const char**); }
const std::type_info &test2() { return typeid(A); }
const std::type_info &test3() { return typeid(B); }
const std::type_info &test4() { return typeid(C); }
daysthatwere clang$ clang /tmp/red.cpp -c -o red.o
daysthatwere clang$ nm -m red.o | grep __ZTI | c++filt
0000000000000120 (__DATA,__datacoal_nt) weak external typeinfo for A
(undefined) external typeinfo for B
0000000000000150 (__DATA,__const) external typeinfo for C
(undefined) external typeinfo for char const*
0000000000000100 (__DATA,__datacoal_nt) weak e...