]> granicus.if.org Git - clang/commit
Refactor and generalize GetAddrOfConstantString and GetAddrOfConstantStringFromLiteral.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Jun 2014 19:56:57 +0000 (19:56 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Jun 2014 19:56:57 +0000 (19:56 +0000)
commitc54a9c3b7aa1b0f857ee866d3aae71f1d7884d6a
tree361a7ed90a0df9c05ef5ce444f68f351484ec4d2
parentdc7436c8690b095ed7359efb10e25c01506ce7ce
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
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h