@@ -649,9 +649,6 @@ void SemaHLSL::emitLogicalOperatorFixIt(Expr *LHS, Expr *RHS,
649
649
}
650
650
651
651
void SemaHLSL::handleRootSignatureAttr (Decl *D, const ParsedAttr &AL) {
652
- using namespace llvm ::hlsl::root_signature;
653
- using namespace clang ::hlsl;
654
-
655
652
if (AL.getNumArgs () != 1 )
656
653
return ;
657
654
@@ -662,26 +659,26 @@ void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) {
662
659
SourceLocation Loc = AL.getArgAsExpr (0 )->getExprLoc ();
663
660
// FIXME: pass down below to lexer when fp is supported
664
661
// llvm::RoundingMode RM = SemaRef.CurFPFeatures.getRoundingMode();
665
- SmallVector<RootSignatureToken> Tokens;
666
- RootSignatureLexer Lexer (Signature, Loc, SemaRef.getPreprocessor ());
662
+ SmallVector<hlsl:: RootSignatureToken> Tokens;
663
+ hlsl:: RootSignatureLexer Lexer (Signature, Loc, SemaRef.getPreprocessor ());
667
664
if (Lexer.Lex (Tokens))
668
665
return ;
669
666
670
- SmallVector<RootElement> Elements;
671
- RootSignatureParser Parser (Elements, Tokens,
667
+ SmallVector<llvm::hlsl::root_signature:: RootElement> Elements;
668
+ hlsl:: RootSignatureParser Parser (Elements, Tokens,
672
669
SemaRef.getPreprocessor ().getDiagnostics ());
673
670
if (Parser.Parse ())
674
671
return ;
675
672
676
673
unsigned N = Elements.size ();
677
674
auto RootElements =
678
- MutableArrayRef<RootElement>(::new (getASTContext ()) RootElement[N], N);
675
+ MutableArrayRef<llvm::hlsl::root_signature:: RootElement>(::new (getASTContext ()) llvm::hlsl::root_signature:: RootElement[N], N);
679
676
for (unsigned I = 0 ; I < N; ++I)
680
677
RootElements[I] = Elements[I];
681
678
682
679
auto *Result = ::new (getASTContext ())
683
680
HLSLRootSignatureAttr (getASTContext (), AL, Signature);
684
- Result->setElements (ArrayRef<RootElement>(RootElements));
681
+ Result->setElements (ArrayRef<llvm::hlsl::root_signature:: RootElement>(RootElements));
685
682
D->addAttr (Result);
686
683
}
687
684
0 commit comments