From 23c9dc65859030a7c627edb78fab44b50e8c9571 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 28 Nov 2016 22:18:27 +0000 Subject: ConstantBuilder -> ConstantInitBuilder for clarity, and move the member classes up to top level to allow forward declarations to name them. NFC. llvm-svn: 288079 --- clang/lib/CodeGen/CodeGenModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') 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(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(getTypes().ConvertType(NSTy)); } - ConstantBuilder Builder(*this); + ConstantInitBuilder Builder(*this); auto Fields = Builder.beginStruct(NSConstantStringType); // Class pointer. -- cgit v1.2.3