From 7a10ac3839e2d6a39330b2383990bebb5769db0b Mon Sep 17 00:00:00 2001 From: ykiko Date: Sun, 1 Sep 2024 13:05:43 +0800 Subject: [PATCH] update ParsedAST. --- include/AST/ParsedAST.h | 2 -- src/AST/ParsedAST.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/AST/ParsedAST.h b/include/AST/ParsedAST.h index 3705c8f5..1698150b 100644 --- a/include/AST/ParsedAST.h +++ b/include/AST/ParsedAST.h @@ -13,8 +13,6 @@ struct ParsedAST { std::unique_ptr action; std::unique_ptr instance; - clang::TranslationUnitDecl* tuDecl; - static std::unique_ptr build(llvm::StringRef filename, llvm::StringRef content, std::vector& args, Preamble* preamble); }; diff --git a/src/AST/ParsedAST.cpp b/src/AST/ParsedAST.cpp index 95f7f88e..7948e95c 100644 --- a/src/AST/ParsedAST.cpp +++ b/src/AST/ParsedAST.cpp @@ -69,8 +69,6 @@ std::unique_ptr ParsedAST::build(llvm::StringRef filename, .tokenBuffer = std::move(collector).consume(), .action = std::move(action), .instance = std::move(instance), - - .tuDecl = instance->getASTContext().getTranslationUnitDecl(), }; return std::unique_ptr{result};