From 63408e848bdb8a2a37d51a0ebcc233f849ae498e Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 22 Apr 2010 20:26:39 +0000 Subject: Support for -fno-constant-cfstrings option - wip. llvm-svn: 102112 --- clang/lib/CodeGen/CodeGenModule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 486c6948d17..b140837337b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1593,6 +1593,12 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { return GV; } +llvm::Constant * +CodeGenModule::GetAddrOfConstantNSString(const StringLiteral *Literal) { + // FIXME. This is temporary so -fno-constant-cfstrings same as old. + return GetAddrOfConstantCFString(Literal); +} + /// GetStringForStringLiteral - Return the appropriate bytes for a /// string literal, properly padded to match the literal type. std::string CodeGenModule::GetStringForStringLiteral(const StringLiteral *E) { -- cgit v1.2.3