Support for -fno-constant-cfstrings option - wip.

llvm-svn: 102112
This commit is contained in:
Fariborz Jahanian
2010-04-22 20:26:39 +00:00
parent f1223bdec0
commit 63408e848b
6 changed files with 30 additions and 1 deletions

View File

@@ -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) {