diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-22 20:26:39 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-22 20:26:39 +0000 |
| commit | 63408e848bdb8a2a37d51a0ebcc233f849ae498e (patch) | |
| tree | 46aac29a16033f7dae649c299479a4cc75e83ef9 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | f1223bdec0cbd7e6a44a8f60e45ce1cf9753e38c (diff) | |
| download | llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.zip llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.tar.gz llvm-63408e848bdb8a2a37d51a0ebcc233f849ae498e.tar.bz2 | |
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.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 486c694..b140837 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) { |
