diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-04 19:56:57 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-04 19:56:57 +0000 |
| commit | 175e52f57b7d6effa19b96b05c962c37a8759917 (patch) | |
| tree | 3851a5005e59a898d60cb419232fff9da17825e6 /clang/lib/CodeGen/CodeGenModule.h | |
| parent | ff0aff3cafd89359ddf9ddab466646309cec0855 (diff) | |
| download | bcm5719-llvm-175e52f57b7d6effa19b96b05c962c37a8759917.tar.gz bcm5719-llvm-175e52f57b7d6effa19b96b05c962c37a8759917.zip | |
Refactor and generalize GetAddrOfConstantString and GetAddrOfConstantStringFromLiteral.
Share mode code between these functions and re-structure them in a way
which shows how similar they actually are. The latter function works well
with literals of multi-byte chars and does a GlobalVariable name mangling
(if global strings are non-writable).
No functionality change.
llvm-svn: 210212
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ef18957e3d2..cbc81ff6fef 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1032,6 +1032,9 @@ private: llvm::PointerType *PTy, const VarDecl *D); + llvm::StringMapEntry<llvm::GlobalVariable *> * + getConstantStringMapEntry(StringRef Str, int CharByteWidth); + /// Set attributes which are common to any form of a global definition (alias, /// Objective-C method, function, global variable). /// |

