aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorThorsten Schütt <schuett@gmail.com>2021-01-04 23:17:45 +0100
committerThorsten Schütt <schuett@gmail.com>2021-01-04 23:17:45 +0100
commit2fd11e0b1ef8bc6ea356670f15d78795aa8bb0e7 (patch)
treebfdfdb44258f7f51b6ca74de31de45bf0e76e5a5 /clang/lib/CodeGen/CGBlocks.cpp
parent36263a7cccc0d98afc36dea55e7a004d08455811 (diff)
downloadllvm-2fd11e0b1ef8bc6ea356670f15d78795aa8bb0e7.zip
llvm-2fd11e0b1ef8bc6ea356670f15d78795aa8bb0e7.tar.gz
llvm-2fd11e0b1ef8bc6ea356670f15d78795aa8bb0e7.tar.bz2
Revert "[NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II)"
This reverts commit efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d.
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index a34f2e3..a4f09af 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1954,7 +1954,7 @@ CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) {
FunctionDecl *FD = FunctionDecl::Create(
C, C.getTranslationUnitDecl(), SourceLocation(), SourceLocation(), II,
- FunctionTy, nullptr, StorageClass::Static, false, false);
+ FunctionTy, nullptr, SC_Static, false, false);
setBlockHelperAttributesVisibility(blockInfo.CapturesNonExternalType, Fn, FI,
CGM);
// This is necessary to avoid inheriting the previous line number.
@@ -2148,7 +2148,7 @@ CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) {
FunctionDecl *FD = FunctionDecl::Create(
C, C.getTranslationUnitDecl(), SourceLocation(), SourceLocation(), II,
- FunctionTy, nullptr, StorageClass::Static, false, false);
+ FunctionTy, nullptr, SC_Static, false, false);
setBlockHelperAttributesVisibility(blockInfo.CapturesNonExternalType, Fn, FI,
CGM);
@@ -2400,10 +2400,9 @@ generateByrefCopyHelper(CodeGenFunction &CGF, const BlockByrefInfo &byrefInfo,
ArgTys.push_back(Context.VoidPtrTy);
QualType FunctionTy = Context.getFunctionType(ReturnTy, ArgTys, {});
- FunctionDecl *FD =
- FunctionDecl::Create(Context, Context.getTranslationUnitDecl(),
- SourceLocation(), SourceLocation(), II, FunctionTy,
- nullptr, StorageClass::Static, false, false);
+ FunctionDecl *FD = FunctionDecl::Create(
+ Context, Context.getTranslationUnitDecl(), SourceLocation(),
+ SourceLocation(), II, FunctionTy, nullptr, SC_Static, false, false);
CGF.CGM.SetInternalFunctionAttributes(GlobalDecl(), Fn, FI);
@@ -2476,10 +2475,9 @@ generateByrefDisposeHelper(CodeGenFunction &CGF,
ArgTys.push_back(Context.VoidPtrTy);
QualType FunctionTy = Context.getFunctionType(R, ArgTys, {});
- FunctionDecl *FD =
- FunctionDecl::Create(Context, Context.getTranslationUnitDecl(),
- SourceLocation(), SourceLocation(), II, FunctionTy,
- nullptr, StorageClass::Static, false, false);
+ FunctionDecl *FD = FunctionDecl::Create(
+ Context, Context.getTranslationUnitDecl(), SourceLocation(),
+ SourceLocation(), II, FunctionTy, nullptr, SC_Static, false, false);
CGF.CGM.SetInternalFunctionAttributes(GlobalDecl(), Fn, FI);