summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/NativeSymbolReuseTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Quick fix for -DBUILD_SHARED_LIBS=on build after rL341502Fangrui Song2018-09-061-3/+5
| | | | | | | | libLLVMTestingSupport.so references a symbol in utils/unittest/UnitTestMain/TestMain.cpp (a layering issue) and will cause a link error because of -Wl,-z,defs (cmake/modules/HandleLLVMOptions.cmake) Waiting zturner for a better fix. llvm-svn: 341580
* Fix a warning.Zachary Turner2018-09-061-1/+1
| | | | llvm-svn: 341561
* [PDB] Refactor the PDB symbol classes to fix a reuse bug.Zachary Turner2018-09-051-0/+128
The way DIA SDK works is that when you request a symbol, it gets assigned an internal identifier that is unique for the life of the session. You can then use this identifier to get back the same symbol, with all of the same internal state that it had before, even if you "destroyed" the original copy of the object you had. This didn't work properly in our native implementation, and if you destroyed an object for a particular symbol, then requested the same symbol again, it would get assigned a new ID and you'd get a fresh copy of the object. In order to fix this some refactoring had to happen to properly reuse cached objects. Some unittests are added to verify that symbol reuse is taking place, making use of the new unittest input feature. llvm-svn: 341503
OpenPOWER on IntegriCloud