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};