Rename clang_type -> compiler_type for variables.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13102
llvm-svn: 248461
diff --git a/lldb/source/Expression/ASTDumper.cpp b/lldb/source/Expression/ASTDumper.cpp
index ab6c0e6..c63e4cc 100644
--- a/lldb/source/Expression/ASTDumper.cpp
+++ b/lldb/source/Expression/ASTDumper.cpp
@@ -80,9 +80,9 @@
m_dump = clang::QualType::getFromOpaquePtr(type).getAsString();
}
-ASTDumper::ASTDumper (const CompilerType &clang_type)
+ASTDumper::ASTDumper (const CompilerType &compiler_type)
{
- m_dump = ClangASTContext::GetQualType(clang_type).getAsString();
+ m_dump = ClangASTContext::GetQualType(compiler_type).getAsString();
}
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index 39870b8..862e6f6 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -1509,7 +1509,7 @@
if (value_decl == NULL)
return false;
- lldb_private::CompilerType clang_type(&value_decl->getASTContext(), value_decl->getType());
+ lldb_private::CompilerType compiler_type(&value_decl->getASTContext(), value_decl->getType());
const Type *value_type = NULL;
@@ -1524,7 +1524,7 @@
// to the type of $__lldb_expr_result, not the type itself.
//
// We also do this for any user-declared persistent variables.
- clang_type = clang_type.GetPointerType();
+ compiler_type = compiler_type.GetPointerType();
value_type = PointerType::get(global_variable->getType(), 0);
}
else
@@ -1532,14 +1532,14 @@
value_type = global_variable->getType();
}
- const uint64_t value_size = clang_type.GetByteSize(nullptr);
- lldb::offset_t value_alignment = (clang_type.GetTypeBitAlign() + 7ull) / 8ull;
+ const uint64_t value_size = compiler_type.GetByteSize(nullptr);
+ lldb::offset_t value_alignment = (compiler_type.GetTypeBitAlign() + 7ull) / 8ull;
if (log)
{
log->Printf("Type of \"%s\" is [clang \"%s\", llvm \"%s\"] [size %" PRIu64 ", align %" PRIu64 "]",
name.c_str(),
- lldb_private::ClangASTContext::GetQualType(clang_type).getAsString().c_str(),
+ lldb_private::ClangASTContext::GetQualType(compiler_type).getAsString().c_str(),
PrintType(value_type).c_str(),
value_size,
value_alignment);