Skip to content

Commit

Permalink
[IRBuilder] Deprecate CreateGlobalStringPtr() (NFC)
Browse files Browse the repository at this point in the history
In favor of CreateGlobalString(), which has the same behavior.
The distinction used to be meaningful prior to the introduction
of opaque pointers.
  • Loading branch information
nikic committed Sep 23, 2024
1 parent b189b89 commit 04d8e36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/IR/IRBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,7 @@ class IRBuilderBase {
///
/// If no module is given via \p M, it is take from the insertion point basic
/// block.
LLVM_DEPRECATED("Use CreateGlobalString instead", "CreateGlobalString")
Constant *CreateGlobalStringPtr(StringRef Str, const Twine &Name = "",
unsigned AddressSpace = 0,
Module *M = nullptr, bool AddNull = true) {
Expand Down

0 comments on commit 04d8e36

Please sign in to comment.