[modules][debuginfo] Only include imported modules when targeting LLDB
These constructs are only applicable to a debugger capable of loading a Clang AST, so omit them for brevity when not doing so. We could potentially propagate more of CodeGenOptions through the ObjectFilePCGContainerOperations for consistency (so the next person who adds some CodeGenOpts feature that tweaks debug info output doesn't get caught by this), so I'm open to objections/alternatives there, but went with this for now. Tested just a couple of basic cases (one direct, one indirect (through the ObjectFilePCHContainerOperations) & fixed up other cases to pass the -debugger-tuning flag as appropriate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268460 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CGDebugInfo.cpp 2 additions, 0 deletionslib/CodeGen/CGDebugInfo.cpp
- lib/CodeGen/ObjectFilePCHContainerOperations.cpp 1 addition, 0 deletionslib/CodeGen/ObjectFilePCHContainerOperations.cpp
- test/Modules/DebugInfoSubmoduleImport.c 1 addition, 1 deletiontest/Modules/DebugInfoSubmoduleImport.c
- test/Modules/DebugInfoTransitiveImport.m 7 additions, 1 deletiontest/Modules/DebugInfoTransitiveImport.m
- test/Modules/debug-info-moduleimport.m 8 additions, 2 deletionstest/Modules/debug-info-moduleimport.m
- test/Modules/getSourceDescriptor-crash.cpp 1 addition, 1 deletiontest/Modules/getSourceDescriptor-crash.cpp
Loading
Please register or sign in to comment