From 109849446329d565ddb2a0af29aeef75f53ecf61 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Wed, 17 Oct 2018 04:29:56 +0000 Subject: [PATCH] NFC: Remove trailing space from CodeGenModule.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344668 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index eebf7c23f3..c8aea635a7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -4106,17 +4106,17 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { llvm::Constant *Zero = llvm::Constant::getNullValue(Int32Ty); llvm::Constant *Zeros[] = { Zero, Zero }; - + // If we don't already have it, get __CFConstantStringClassReference. if (!CFConstantStringClassRef) { llvm::Type *Ty = getTypes().ConvertType(getContext().IntTy); Ty = llvm::ArrayType::get(Ty, 0); llvm::Constant *C = CreateRuntimeVariable(Ty, "__CFConstantStringClassReference"); - + if (getTriple().isOSBinFormatELF() || getTriple().isOSBinFormatCOFF()) { llvm::GlobalValue *GV = nullptr; - + if ((GV = dyn_cast(C))) { IdentifierInfo &II = getContext().Idents.get(GV->getName()); TranslationUnitDecl *TUDecl = getContext().getTranslationUnitDecl(); @@ -4126,7 +4126,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { for (const auto &Result : DC->lookup(&II)) if ((VD = dyn_cast(Result))) break; - + if (getTriple().isOSBinFormatELF()) { if (!VD) GV->setLinkage(llvm::GlobalValue::ExternalLinkage); @@ -4140,11 +4140,11 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { GV->setLinkage(llvm::GlobalValue::ExternalLinkage); } } - + setDSOLocal(GV); } } - + // Decay array -> ptr CFConstantStringClassRef = llvm::ConstantExpr::getGetElementPtr(Ty, C, Zeros); @@ -4197,7 +4197,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { // the static linker to adjust permissions to read-only later on. else if (getTriple().isOSBinFormatELF()) GV->setSection(".rodata"); - + // String. llvm::Constant *Str = llvm::ConstantExpr::getGetElementPtr(GV->getValueType(), GV, Zeros); @@ -4876,7 +4876,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { case Decl::OMPDeclareReduction: EmitOMPDeclareReduction(cast(D)); break; - + case Decl::OMPRequires: EmitOMPRequiresDecl(cast(D)); break; -- 2.40.0