Skip to content

Commit 04d8e36

Browse files
committed
[IRBuilder] Deprecate CreateGlobalStringPtr() (NFC)
In favor of CreateGlobalString(), which has the same behavior. The distinction used to be meaningful prior to the introduction of opaque pointers.
1 parent b189b89 commit 04d8e36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/IR/IRBuilder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ class IRBuilderBase {
20152015
///
20162016
/// If no module is given via \p M, it is take from the insertion point basic
20172017
/// block.
2018+
LLVM_DEPRECATED("Use CreateGlobalString instead", "CreateGlobalString")
20182019
Constant *CreateGlobalStringPtr(StringRef Str, const Twine &Name = "",
20192020
unsigned AddressSpace = 0,
20202021
Module *M = nullptr, bool AddNull = true) {

0 commit comments

Comments
 (0)