search for: __clang_objectlocation

Displaying 1 result from an estimated 1 matches for "__clang_objectlocation".

2014 Aug 11
2
[LLVMdev] Instrumenting the run-time sizes of SmallVector et al.
...llVector, SmallString, etc. that we use in LLVM and Clang hold up against the actual sizes of the containers at run-time. To figure this out, I added a destructor to each such class, that would dump the container's final size into a table that got printed at exit. I also added a special field, __clang_ObjectLocation, to each such class and hacked Clang to populate that field with the source location of the object's declarator each time its constructor was called. I used this instrumented compiler to build vanilla Clang and captured the results (attached, along with the patches I used). It looks like we mo...