Merge "Switch to clang-r377782" am: e73d499e47

Change-Id: I20cf94cf8fe45555339a17d1640a96a10f162d15
This commit is contained in:
Treehugger Robot
2020-02-14 03:02:34 +00:00
4 changed files with 4 additions and 7 deletions

View File

@@ -15,5 +15,5 @@
# limitations under the License.
export LLVM_BUILD_HOST_TOOLS=true
export LLVM_PREBUILTS_VERSION=clang-r370808
export LLVM_RELEASE_VERSION=10.0.1
export LLVM_PREBUILTS_VERSION=clang-r377782
export LLVM_RELEASE_VERSION=10.0.3

View File

@@ -18,7 +18,6 @@
#include "utils/header_abi_util.h"
#include <clang/AST/QualTypeNames.h>
#include <clang/Index/CodegenNameGenerator.h>
#include <regex>
#include <string>

View File

@@ -19,7 +19,6 @@
#include <clang/Lex/Token.h>
#include <clang/AST/QualTypeNames.h>
#include <clang/Index/CodegenNameGenerator.h>
#include <fstream>
#include <iostream>
@@ -135,7 +134,7 @@ bool HeaderASTVisitor::VisitFunctionDecl(const clang::FunctionDecl *decl) {
auto function_wrapper = function_decl_wrapper.GetFunctionDecl();
// Destructors and Constructors can have more than 1 symbol generated from the
// same Decl.
clang::index::CodegenNameGenerator cg(*ast_contextp_);
clang::ASTNameGenerator cg(*ast_contextp_);
std::vector<std::string> manglings = cg.getAllManglings(decl);
if (!manglings.empty()) {
return AddMangledFunctions(function_wrapper.get(), module_, manglings);

View File

@@ -57,8 +57,7 @@ FakeDeclSource::CreateClassTemplateDecl(clang::CXXRecordDecl *cxx_record_decl,
clang::ClassTemplateDecl *class_template_decl =
clang::ClassTemplateDecl::Create(
ast, decl_context, clang::SourceLocation(),
cxx_record_decl->getDeclName(), parm_list, cxx_record_decl,
/* AssociatedConstraints */ nullptr);
cxx_record_decl->getDeclName(), parm_list, cxx_record_decl);
cxx_record_decl->setDescribedClassTemplate(class_template_decl);
class_template_decl->setInvalidDecl(true);