summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-17 21:56:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-17 21:56:50 +0000
commitdfcf599dfa1257170a2c7ece3d42cc1423c0fbb4 (patch)
tree348e3b7e7a58189134132bf303c171e28d9a9474 /clang/lib/CodeGen/CodeGenModule.h
parent83876cd9b0a48f8ed5da8b97c284b1d4f6c93c57 (diff)
downloadbcm5719-llvm-dfcf599dfa1257170a2c7ece3d42cc1423c0fbb4.tar.gz
bcm5719-llvm-dfcf599dfa1257170a2c7ece3d42cc1423c0fbb4.zip
Add option argument to GetAddrOfConstantString to use for name of
(first) global holding the string. - No functionality change. llvm-svn: 57736
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 6a201be3760..3f604dd048b 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -179,12 +179,20 @@ public:
/// Feature.WriteableStrings.
///
/// The result has pointer to array type.
- llvm::Constant *GetAddrOfConstantString(const std::string& str);
+ ///
+ /// \param GlobalName If provided, the name to use for the global
+ /// (if one is created).
+ llvm::Constant *GetAddrOfConstantString(const std::string& str,
+ const char *GlobalName=0);
/// GetAddrOfConstantCString - Returns a pointer to a character
- /// array containing the literal and a terminating '\-'
+ /// array containing the literal and a terminating '\0'
/// character. The result has pointer to array type.
- llvm::Constant *GetAddrOfConstantCString(const std::string &str);
+ ///
+ /// \param GlobalName If provided, the name to use for the global
+ /// (if one is created).
+ llvm::Constant *GetAddrOfConstantCString(const std::string &str,
+ const char *GlobalName=0);
/// getBuiltinLibFunction - Given a builtin id for a function like
/// "__builtin_fabsf", return a Function* for "fabsf".
OpenPOWER on IntegriCloud