diff options
| author | Zachary Turner <zturner@google.com> | 2016-03-28 22:53:41 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-03-28 22:53:41 +0000 |
| commit | d133f6acf14ab84e364baa55ebe3aafecd0451d0 (patch) | |
| tree | 3b12690da0ab37bcfa209584525b86049fe28064 /lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp | |
| parent | ecabac6244f67c477ae2e8f71c41bb12d35e42be (diff) | |
| download | bcm5719-llvm-d133f6acf14ab84e364baa55ebe3aafecd0451d0.tar.gz bcm5719-llvm-d133f6acf14ab84e364baa55ebe3aafecd0451d0.zip | |
Move some functions from DWARFASTParserClang to ClangASTImporter.
This allows these functions to be re-used by a forthcoming
PDBASTParser. The functions in question are CanCompleteType,
CompleteType, and CanImport. Conceptually, these functions belong
on ClangASTImporter anyway, and previously they were just ping
ponging around through a few levels of indirection to end up there
as well, so this patch actually makes the code somewhat simpler.
A few methods were moved to a new file called ClangUtil, so that
they can be shared between ClangASTImporter and ClangASTContext
without creating a circular dependency between those two cpp
files.
Differential Revision: http://reviews.llvm.org/D18381
llvm-svn: 264685
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp index 976310610f5..0b819948115 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp @@ -11,6 +11,7 @@ #include "lldb/Core/Log.h" #include "lldb/Symbol/ClangASTContext.h" +#include "lldb/Symbol/ClangUtil.h" #include "lldb/Symbol/CompilerType.h" #include "llvm/Support/raw_ostream.h" @@ -83,7 +84,7 @@ ASTDumper::ASTDumper (lldb::opaque_compiler_type_t type) ASTDumper::ASTDumper (const CompilerType &compiler_type) { - m_dump = ClangASTContext::GetQualType(compiler_type).getAsString(); + m_dump = ClangUtil::GetQualType(compiler_type).getAsString(); } |

