[clang] a88f496 - [Sema] Remove unused function getFloat128Identifier
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Wed May 31 08:59:41 PDT 2023
Author: Kazu Hirata
Date: 2023-05-31T08:59:35-07:00
New Revision: a88f496f8f3baa6c3b15532e37e3bdbb1c4ea0d0
URL: https://github.com/llvm/llvm-project/commit/a88f496f8f3baa6c3b15532e37e3bdbb1c4ea0d0
DIFF: https://github.com/llvm/llvm-project/commit/a88f496f8f3baa6c3b15532e37e3bdbb1c4ea0d0.diff
LOG: [Sema] Remove unused function getFloat128Identifier
The last use was removed by:
commit bb1ea2d6139a72340b426e114510c46d938645a6
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: Mon May 9 08:52:33 2016 +0000
Differential Revision: https://reviews.llvm.org/D151608
Added:
Modified:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index be93f8a116c11..afbc895cfd288 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -13764,7 +13764,6 @@ class Sema final {
Scope *CurScope;
mutable IdentifierInfo *Ident_super;
- mutable IdentifierInfo *Ident___float128;
/// Nullability type specifiers.
IdentifierInfo *Ident__Nonnull = nullptr;
@@ -13813,7 +13812,6 @@ class Sema final {
}
IdentifierInfo *getSuperIdentifier() const;
- IdentifierInfo *getFloat128Identifier() const;
ObjCContainerDecl *getObjCDeclContext() const;
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index b0a8aeddf6034..c4349c7a6fb50 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -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;
@@ -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) {
More information about the cfe-commits
mailing list