diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-17 21:56:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-17 21:56:50 +0000 |
commit | 5fabf9dbee29464bcd06cd09f8e569d1b850f948 (patch) | |
tree | 591d650e9baa2d53f188097dfacf88a2443a2683 /lib/CodeGen/CodeGenModule.h | |
parent | a1f23cc7f5dae8b71b8ee631994274609d35eb89 (diff) |
Add option argument to GetAddrOfConstantString to use for name of
(first) global holding the string.
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 6a201be376..3f604dd048 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/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". |