summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.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/CodeGenModule.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/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 44eeaac73d1..0502709389b 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -743,7 +743,7 @@ void CodeGenModule::EmitCtorList(CtorList &Fns, const char *GlobalName) {
Int32Ty, llvm::PointerType::getUnqual(CtorFTy), VoidPtrTy, nullptr);
// Construct the constructor and destructor arrays.
- ConstantBuilder builder(*this);
+ ConstantInitBuilder builder(*this);
auto ctors = builder.beginArray(CtorStructTy);
for (const auto &I : Fns) {
auto ctor = ctors.beginStruct(CtorStructTy);
@@ -3190,7 +3190,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
auto *STy = cast<llvm::StructType>(getTypes().ConvertType(CFTy));
- ConstantBuilder Builder(*this);
+ ConstantInitBuilder Builder(*this);
auto Fields = Builder.beginStruct(STy);
// Class pointer.
@@ -3336,7 +3336,7 @@ CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal) {
NSConstantStringType = cast<llvm::StructType>(getTypes().ConvertType(NSTy));
}
- ConstantBuilder Builder(*this);
+ ConstantInitBuilder Builder(*this);
auto Fields = Builder.beginStruct(NSConstantStringType);
// Class pointer.
OpenPOWER on IntegriCloud