llvm-project/lldb/lit
Aaron Smith 10a02577ea [lldb] Add support to cache a PDB's global scope and fix a bug in getting the source file name for a compiland
Summary:
This commit is a combination of the following changes:
    
- Cache PDB's global scope (executable) in SymbolFilePDB  

- Change naming of `cu` to `compiland` which is PDB specific   

- Change ParseCompileUnitForSymIndex to ParseCompileUnitForUID.
   Prefer using a common name `UID` instead of PDB's `System Index`
   Adding one more argument `index` to this method, which is used to
   specify the index of the compile unit in a cached compile unit array
    
- Add GetPDBCompilandByUID method to simply code
    
- Fix a bug in getting the source file name for a PDB compiland.
   For some reason, PDBSymbolCompiland::getSourceFileName() could
   return an empty name, so if that is true, we have to walk through all
   source files of this compiland and determine the right source file
   used to generate this compiland based on language indicated.
    
   The previous implementation called PDBSession::findOneSourceFile 
   method to get its name for the compiland. This is not accurate since
   the `one source file` found could be a header other than source file.

Reviewers: zturner, lldb-commits

Reviewed By: zturner

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D41428

llvm-svn: 322433
2018-01-13 06:58:18 +00:00
..
Expr Fix regex in lldb lit test TestCallStopAndContinue 2016-10-03 00:07:24 +00:00
Modules ObjectFileELF: Add support for compressed sections 2017-12-15 14:23:58 +00:00
SymbolFile/PDB [lldb] Add support to cache a PDB's global scope and fix a bug in getting the source file name for a compiland 2018-01-13 06:58:18 +00:00
Unit Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
CMakeLists.txt [test] Fix tests to use more portable LLVM_ENABLE_ZLIB 2018-01-09 14:44:04 +00:00
lit.cfg [test] Use full PATH lookup for tools 2018-01-06 10:20:25 +00:00
lit.site.cfg.in [test] Fix tests to use more portable LLVM_ENABLE_ZLIB 2018-01-09 14:44:04 +00:00