diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-19 17:19:29 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-19 17:19:29 +0000 |
commit | 50c925fe967754666400ccfec251ebd2b7cc62b0 (patch) | |
tree | 2e0d9bff11a89b6801035574143792763da5d8f8 /clang/lib/CodeGen/CodeGenModule.h | |
parent | f0873f4c853c0df10a41dd55f4fdda8a86b8ea99 (diff) | |
download | llvm-50c925fe967754666400ccfec251ebd2b7cc62b0.zip llvm-50c925fe967754666400ccfec251ebd2b7cc62b0.tar.gz llvm-50c925fe967754666400ccfec251ebd2b7cc62b0.tar.bz2 |
This patch implements Next's IRGen for -fconstant-string-class=class-name.
PR6056, //rdar: //8564463
llvm-svn: 116819
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 236b5b7..d050eea 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -185,9 +185,9 @@ class CodeGenModule : public BlockModule { /// strings. This value has type int * but is actually an Obj-C class pointer. llvm::Constant *CFConstantStringClassRef; - /// NSConstantStringClassRef - Cached reference to the class for constant + /// ConstantStringClassRef - Cached reference to the class for constant /// strings. This value has type int * but is actually an Obj-C class pointer. - llvm::Constant *NSConstantStringClassRef; + llvm::Constant *ConstantStringClassRef; /// Lazily create the Objective-C runtime void createObjCRuntime(); @@ -321,9 +321,10 @@ public: /// for the given string. llvm::Constant *GetAddrOfConstantCFString(const StringLiteral *Literal); - /// GetAddrOfConstantNSString - Return a pointer to a constant NSString object - /// for the given string. - llvm::Constant *GetAddrOfConstantNSString(const StringLiteral *Literal); + /// GetAddrOfConstantString - Return a pointer to a constant NSString object + /// for the given string. Or a user defined String object as defined via + /// -fconstant-string-class=class_name option. + llvm::Constant *GetAddrOfConstantString(const StringLiteral *Literal); /// GetAddrOfConstantStringFromLiteral - Return a pointer to a constant array /// for the given string literal. |