summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2016-11-28 22:18:27 +0000
committerJohn McCall <rjmccall@apple.com>2016-11-28 22:18:27 +0000
commit23c9dc65859030a7c627edb78fab44b50e8c9571 (patch)
treef1241dfd531765a762993af99a24f0a4b1f51629 /clang/lib/CodeGen/CGBlocks.cpp
parent3ab2a5a824509746f35507361af5b397923bde3b (diff)
downloadbcm5719-llvm-23c9dc65859030a7c627edb78fab44b50e8c9571.tar.gz
bcm5719-llvm-23c9dc65859030a7c627edb78fab44b50e8c9571.zip
ConstantBuilder -> ConstantInitBuilder for clarity, and
move the member classes up to top level to allow forward declarations to name them. NFC. llvm-svn: 288079
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index d9e14017470..09911d4b099 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -88,7 +88,7 @@ static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM,
else
i8p = CGM.VoidPtrTy;
- ConstantBuilder builder(CGM);
+ ConstantInitBuilder builder(CGM);
auto elements = builder.beginStruct();
// reserved
@@ -1076,7 +1076,7 @@ static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM,
assert(blockInfo.CanBeGlobal);
// Generate the constants for the block literal initializer.
- ConstantBuilder builder(CGM);
+ ConstantInitBuilder builder(CGM);
auto fields = builder.beginStruct();
// isa
OpenPOWER on IntegriCloud