@@ -654,29 +654,6 @@ ParsedType Sema::ActOnMSVCUnknownTypeName(const IdentifierInfo &II,
654
654
return CreateParsedType(T, Builder.getTypeSourceInfo(Context, T));
655
655
}
656
656
657
- std::pair<IdentifierInfo *, bool>
658
- Sema::ActOnStartRootSignatureDecl(StringRef Signature) {
659
- auto Hash = llvm::hash_value(Signature);
660
- std::string IdStr = "__hlsl_rootsig_decl_" + std::to_string(Hash);
661
- IdentifierInfo *DeclIdent = &(getASTContext().Idents.get(IdStr));
662
-
663
- // Check if we have already found a decl of the same name.
664
- LookupResult R(*this, DeclIdent, SourceLocation(), Sema::LookupOrdinaryName);
665
- bool Found = LookupQualifiedName(R, this->CurContext);
666
- return {DeclIdent, Found};
667
- }
668
-
669
- void Sema::ActOnFinishRootSignatureDecl(
670
- SourceLocation Loc, IdentifierInfo *DeclIdent,
671
- SmallVector<llvm::hlsl::rootsig::RootElement> &Elements) {
672
-
673
- auto *SignatureDecl = HLSLRootSignatureDecl::Create(
674
- getASTContext(), /*DeclContext=*/CurContext, Loc, DeclIdent, Elements);
675
-
676
- SignatureDecl->setImplicit();
677
- PushOnScopeChains(SignatureDecl, getCurScope());
678
- }
679
-
680
657
DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) {
681
658
// Do a tag name lookup in this scope.
682
659
LookupResult R(*this, &II, SourceLocation(), LookupTagName);
0 commit comments