summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-04-22 20:26:39 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-04-22 20:26:39 +0000
commit63408e848bdb8a2a37d51a0ebcc233f849ae498e (patch)
tree46aac29a16033f7dae649c299479a4cc75e83ef9 /clang/lib/CodeGen/CodeGenModule.cpp
parentf1223bdec0cbd7e6a44a8f60e45ce1cf9753e38c (diff)
downloadbcm5719-llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.tar.gz
bcm5719-llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.zip
Support for -fno-constant-cfstrings option - wip.
llvm-svn: 102112
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 6 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud