summaryrefslogtreecommitdiffstats
path: root/clang/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
commit175e52f57b7d6effa19b96b05c962c37a8759917 (patch)
tree3851a5005e59a898d60cb419232fff9da17825e6 /clang/lib/CodeGen/CodeGenModule.h
parentff0aff3cafd89359ddf9ddab466646309cec0855 (diff)
downloadbcm5719-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.h3
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).
///
OpenPOWER on IntegriCloud