Skip to content

Commit 5178585

Browse files
authored
[NFC][Instrumentation] Use Twine in createPrivateGlobalForString (#104726)
1 parent dde8280 commit 5178585

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Instrumentation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ BasicBlock::iterator PrepareToSplitEntryBlock(BasicBlock &BB,
4646
// Create a constant for Str so that we can pass it to the run-time lib.
4747
GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str,
4848
bool AllowMerging,
49-
const char *NamePrefix = "");
49+
Twine NamePrefix = "");
5050

5151
// Returns F.getComdat() if it exists.
5252
// Otherwise creates a new comdat, sets F's comdat, and returns it.

llvm/lib/Transforms/Instrumentation/Instrumentation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ BasicBlock::iterator llvm::PrepareToSplitEntryBlock(BasicBlock &BB,
9191
// Create a constant for Str so that we can pass it to the run-time lib.
9292
GlobalVariable *llvm::createPrivateGlobalForString(Module &M, StringRef Str,
9393
bool AllowMerging,
94-
const char *NamePrefix) {
94+
Twine NamePrefix) {
9595
Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str);
9696
// We use private linkage for module-local strings. If they can be merged
9797
// with another one, we set the unnamed_addr attribute.

0 commit comments

Comments
 (0)