Skip to content

Commit

Permalink
[Sema] Remove unused function getFloat128Identifier
Browse files Browse the repository at this point in the history
The last use was removed by:

  commit bb1ea2d
  Author: Nemanja Ivanovic <nemanja.i.ibm@gmail.com>
  Date:   Mon May 9 08:52:33 2016 +0000

Differential Revision: https://reviews.llvm.org/D151608
  • Loading branch information
kazutakahirata committed May 31, 2023
1 parent 8e728ad commit a88f496
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -13764,7 +13764,6 @@ class Sema final {
Scope *CurScope;

mutable IdentifierInfo *Ident_super;
mutable IdentifierInfo *Ident___float128;

/// Nullability type specifiers.
IdentifierInfo *Ident__Nonnull = nullptr;
Expand Down Expand Up @@ -13813,7 +13812,6 @@ class Sema final {
}

IdentifierInfo *getSuperIdentifier() const;
IdentifierInfo *getFloat128Identifier() const;

ObjCContainerDecl *getObjCDeclContext() const;

Expand Down
8 changes: 1 addition & 7 deletions clang/lib/Sema/Sema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
ArgumentPackSubstitutionIndex(-1), CurrentInstantiationScope(nullptr),
DisableTypoCorrection(false), TyposCorrected(0), AnalysisWarnings(*this),
ThreadSafetyDeclCache(nullptr), VarDataSharingAttributesStack(nullptr),
CurScope(nullptr), Ident_super(nullptr), Ident___float128(nullptr) {
CurScope(nullptr), Ident_super(nullptr) {
assert(pp.TUKind == TUKind);
TUScope = nullptr;
isConstantEvaluatedOverride = false;
Expand Down Expand Up @@ -2686,12 +2686,6 @@ IdentifierInfo *Sema::getSuperIdentifier() const {
return Ident_super;
}

IdentifierInfo *Sema::getFloat128Identifier() const {
if (!Ident___float128)
Ident___float128 = &Context.Idents.get("__float128");
return Ident___float128;
}

void Sema::PushCapturedRegionScope(Scope *S, CapturedDecl *CD, RecordDecl *RD,
CapturedRegionKind K,
unsigned OpenMPCaptureLevel) {
Expand Down

0 comments on commit a88f496

Please sign in to comment.