@@ -2770,7 +2770,7 @@ GenerateStringLiteral(llvm::Constant *C, llvm::GlobalValue::LinkageTypes LT,
2770
2770
2771
2771
// / GetAddrOfConstantStringFromLiteral - Return a pointer to a
2772
2772
// / constant array for the given string literal.
2773
- llvm::Constant *
2773
+ llvm::GlobalVariable *
2774
2774
CodeGenModule::GetAddrOfConstantStringFromLiteral (const StringLiteral *S) {
2775
2775
auto Alignment =
2776
2776
getContext ().getAlignOfGlobalVarInChars (S->getType ()).getQuantity ();
@@ -2816,7 +2816,7 @@ CodeGenModule::GetAddrOfConstantStringFromLiteral(const StringLiteral *S) {
2816
2816
2817
2817
// / GetAddrOfConstantStringFromObjCEncode - Return a pointer to a constant
2818
2818
// / array for the given ObjCEncodeExpr node.
2819
- llvm::Constant *
2819
+ llvm::GlobalVariable *
2820
2820
CodeGenModule::GetAddrOfConstantStringFromObjCEncode (const ObjCEncodeExpr *E) {
2821
2821
std::string Str;
2822
2822
getContext ().getObjCEncodingForType (E->getEncodedType (), Str);
@@ -2847,9 +2847,8 @@ llvm::StringMapEntry<llvm::GlobalVariable *> *CodeGenModule::getConstantStringMa
2847
2847
// / GetAddrOfConstantCString - Returns a pointer to a character array containing
2848
2848
// / the literal and a terminating '\0' character.
2849
2849
// / The result has pointer to array type.
2850
- llvm::Constant *CodeGenModule::GetAddrOfConstantCString (const std::string &Str,
2851
- const char *GlobalName,
2852
- unsigned Alignment) {
2850
+ llvm::GlobalVariable *CodeGenModule::GetAddrOfConstantCString (
2851
+ const std::string &Str, const char *GlobalName, unsigned Alignment) {
2853
2852
StringRef StrWithNull (Str.c_str (), Str.size () + 1 );
2854
2853
if (Alignment == 0 ) {
2855
2854
Alignment = getContext ()
0 commit comments