@@ -698,13 +698,13 @@ class DeclarationNameLoc {
698
698
699
699
// The location (if any) of the operator keyword is stored elsewhere.
700
700
struct CXXOpName {
701
- SourceLocation::UIntTy BeginOpNameLoc;
702
- SourceLocation::UIntTy EndOpNameLoc;
701
+ SourceLocation BeginOpNameLoc;
702
+ SourceLocation EndOpNameLoc;
703
703
};
704
704
705
705
// The location (if any) of the operator keyword is stored elsewhere.
706
706
struct CXXLitOpName {
707
- SourceLocation::UIntTy OpNameLoc;
707
+ SourceLocation OpNameLoc;
708
708
};
709
709
710
710
// struct {} CXXUsingDirective;
@@ -720,12 +720,12 @@ class DeclarationNameLoc {
720
720
void setNamedTypeLoc (TypeSourceInfo *TInfo) { NamedType.TInfo = TInfo; }
721
721
722
722
void setCXXOperatorNameRange (SourceRange Range) {
723
- CXXOperatorName.BeginOpNameLoc = Range.getBegin (). getRawEncoding () ;
724
- CXXOperatorName.EndOpNameLoc = Range.getEnd (). getRawEncoding () ;
723
+ CXXOperatorName.BeginOpNameLoc = Range.getBegin ();
724
+ CXXOperatorName.EndOpNameLoc = Range.getEnd ();
725
725
}
726
726
727
727
void setCXXLiteralOperatorNameLoc (SourceLocation Loc) {
728
- CXXLiteralOperatorName.OpNameLoc = Loc. getRawEncoding () ;
728
+ CXXLiteralOperatorName.OpNameLoc = Loc;
729
729
}
730
730
731
731
public:
@@ -739,12 +739,12 @@ class DeclarationNameLoc {
739
739
740
740
// / Return the beginning location of the getCXXOperatorNameRange() range.
741
741
SourceLocation getCXXOperatorNameBeginLoc () const {
742
- return SourceLocation::getFromRawEncoding ( CXXOperatorName.BeginOpNameLoc ) ;
742
+ return CXXOperatorName.BeginOpNameLoc ;
743
743
}
744
744
745
745
// / Return the end location of the getCXXOperatorNameRange() range.
746
746
SourceLocation getCXXOperatorNameEndLoc () const {
747
- return SourceLocation::getFromRawEncoding ( CXXOperatorName.EndOpNameLoc ) ;
747
+ return CXXOperatorName.EndOpNameLoc ;
748
748
}
749
749
750
750
// / Return the range of the operator name (without the operator keyword).
@@ -759,7 +759,7 @@ class DeclarationNameLoc {
759
759
// / keyword). Assumes that the object stores location information of a literal
760
760
// / operator.
761
761
SourceLocation getCXXLiteralOperatorNameLoc () const {
762
- return SourceLocation::getFromRawEncoding ( CXXLiteralOperatorName.OpNameLoc ) ;
762
+ return CXXLiteralOperatorName.OpNameLoc ;
763
763
}
764
764
765
765
// / Construct location information for a constructor, destructor or conversion
0 commit comments