mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[Clang] Remove unused parameter. NFC
BinaryOperator::getFPFeatures get parameter, which is not used. Similar methods of other AST nodes do not have any parameter.
This commit is contained in:
parent
7314ad7a06
commit
2bb7c54621
@ -4009,7 +4009,7 @@ public:
|
||||
}
|
||||
|
||||
// This is used in ASTImporter
|
||||
FPOptionsOverride getFPFeatures(const LangOptions &LO) const {
|
||||
FPOptionsOverride getFPFeatures() const {
|
||||
if (BinaryOperatorBits.HasFPFeatures)
|
||||
return getStoredFPFeatures();
|
||||
return FPOptionsOverride();
|
||||
|
@ -7224,7 +7224,7 @@ ExpectedStmt ASTNodeImporter::VisitBinaryOperator(BinaryOperator *E) {
|
||||
return BinaryOperator::Create(
|
||||
Importer.getToContext(), ToLHS, ToRHS, E->getOpcode(), ToType,
|
||||
E->getValueKind(), E->getObjectKind(), ToOperatorLoc,
|
||||
E->getFPFeatures(Importer.getFromContext().getLangOpts()));
|
||||
E->getFPFeatures());
|
||||
}
|
||||
|
||||
ExpectedStmt ASTNodeImporter::VisitConditionalOperator(ConditionalOperator *E) {
|
||||
@ -7335,7 +7335,7 @@ ASTNodeImporter::VisitCompoundAssignOperator(CompoundAssignOperator *E) {
|
||||
return CompoundAssignOperator::Create(
|
||||
Importer.getToContext(), ToLHS, ToRHS, E->getOpcode(), ToType,
|
||||
E->getValueKind(), E->getObjectKind(), ToOperatorLoc,
|
||||
E->getFPFeatures(Importer.getFromContext().getLangOpts()),
|
||||
E->getFPFeatures(),
|
||||
ToComputationLHSType, ToComputationResultType);
|
||||
}
|
||||
|
||||
|
@ -7381,7 +7381,7 @@ ExprResult Sema::ActOnDecltypeExpression(Expr *E) {
|
||||
return BinaryOperator::Create(Context, BO->getLHS(), RHS.get(), BO_Comma,
|
||||
BO->getType(), BO->getValueKind(),
|
||||
BO->getObjectKind(), BO->getOperatorLoc(),
|
||||
BO->getFPFeatures(getLangOpts()));
|
||||
BO->getFPFeatures());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11186,7 +11186,7 @@ TreeTransform<Derived>::TransformBinaryOperator(BinaryOperator *E) {
|
||||
return getDerived().RebuildBinaryOperator(
|
||||
E->getOperatorLoc(), E->getOpcode(), LHS.get(), RHS.get());
|
||||
Sema::FPFeaturesStateRAII FPFeaturesState(getSema());
|
||||
FPOptionsOverride NewOverrides(E->getFPFeatures(getSema().getLangOpts()));
|
||||
FPOptionsOverride NewOverrides(E->getFPFeatures());
|
||||
getSema().CurFPFeatures =
|
||||
NewOverrides.applyOverrides(getSema().getLangOpts());
|
||||
getSema().FpPragmaStack.CurrentValue = NewOverrides;
|
||||
@ -11253,7 +11253,7 @@ ExprResult
|
||||
TreeTransform<Derived>::TransformCompoundAssignOperator(
|
||||
CompoundAssignOperator *E) {
|
||||
Sema::FPFeaturesStateRAII FPFeaturesState(getSema());
|
||||
FPOptionsOverride NewOverrides(E->getFPFeatures(getSema().getLangOpts()));
|
||||
FPOptionsOverride NewOverrides(E->getFPFeatures());
|
||||
getSema().CurFPFeatures =
|
||||
NewOverrides.applyOverrides(getSema().getLangOpts());
|
||||
getSema().FpPragmaStack.CurrentValue = NewOverrides;
|
||||
|
Loading…
Reference in New Issue
Block a user