Merge "Switch to clang-r377782" am: e73d499e47 am: 3318aa8224
Change-Id: I05f67dd239fc49c0cc932d542053800e832f516e
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "utils/header_abi_util.h"
|
||||
|
||||
#include <clang/AST/QualTypeNames.h>
|
||||
#include <clang/Index/CodegenNameGenerator.h>
|
||||
|
||||
#include <regex>
|
||||
#include <string>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user