summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-06-04 19:56:57 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-06-04 19:56:57 +0000
commitc54a9c3b7aa1b0f857ee866d3aae71f1d7884d6a (patch)
tree361a7ed90a0df9c05ef5ce444f68f351484ec4d2 /lib/CodeGen/CodeGenModule.h
parentdc7436c8690b095ed7359efb10e25c01506ce7ce (diff)
downloadclang-c54a9c3b7aa1b0f857ee866d3aae71f1d7884d6a.tar.gz
clang-c54a9c3b7aa1b0f857ee866d3aae71f1d7884d6a.tar.bz2
clang-c54a9c3b7aa1b0f857ee866d3aae71f1d7884d6a.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index ef18957e3d..cbc81ff6fe 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/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).
///