diff options
author | Greg Clayton <gclayton@apple.com> | 2015-12-08 01:02:08 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-12-08 01:02:08 +0000 |
commit | e6b36cdd4d571c91081e2d5f8c0b31830093d110 (patch) | |
tree | 22cafaecc3689d05ade3fb2171d1cd684aeebd03 /lldb/source/Symbol/SymbolFile.cpp | |
parent | de02939823b3ea222d8f5730e7dfb739d5200fe8 (diff) | |
download | bcm5719-llvm-e6b36cdd4d571c91081e2d5f8c0b31830093d110.tar.gz bcm5719-llvm-e6b36cdd4d571c91081e2d5f8c0b31830093d110.zip |
Trying to submit 254476 one more time. This implement -gmodule debugging support.
It was previously reverted due to issues that showed up only on linux. I was able to reproduce these issues and fix the underlying cause.
So this is the same patch as 254476 with the following two fixes:
- Fix not trying to complete classes that don't have external sources
- Fix ClangASTSource::CompleteType() to check the decl context of types that it finds by basename to ensure we don't complete a type "S" with a type like "std::S". Before this fix ClangASTSource::CompleteType() would accept _any_ type that had a matching basename and copy it into the other type.
<rdar://problem/22992457>
llvm-svn: 254980
Diffstat (limited to 'lldb/source/Symbol/SymbolFile.cpp')
-rw-r--r-- | lldb/source/Symbol/SymbolFile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Symbol/SymbolFile.cpp b/lldb/source/Symbol/SymbolFile.cpp index 5486468181f..51e35048d5c 100644 --- a/lldb/source/Symbol/SymbolFile.cpp +++ b/lldb/source/Symbol/SymbolFile.cpp @@ -142,3 +142,11 @@ SymbolFile::FindTypes (const SymbolContext& sc, const ConstString &name, const C return 0; } + +size_t +SymbolFile::FindTypes (const std::vector<CompilerContext> &context, bool append, TypeMap& types) +{ + if (!append) + types.Clear(); + return 0; +} |