mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Pass MDFieldPrinter::printAPInt APInt arg by reference not value.
Noticed by clang-tidy performance-unnecessary-value-param warning.
This commit is contained in:
parent
d908315744
commit
d9c34b0e0b
@ -1654,7 +1654,7 @@ struct MDFieldPrinter {
|
||||
bool ShouldSkipNull = true);
|
||||
template <class IntTy>
|
||||
void printInt(StringRef Name, IntTy Int, bool ShouldSkipZero = true);
|
||||
void printAPInt(StringRef Name, APInt Int, bool IsUnsigned,
|
||||
void printAPInt(StringRef Name, const APInt &Int, bool IsUnsigned,
|
||||
bool ShouldSkipZero);
|
||||
void printBool(StringRef Name, bool Value, Optional<bool> Default = None);
|
||||
void printDIFlags(StringRef Name, DINode::DIFlags Flags);
|
||||
@ -1731,8 +1731,8 @@ void MDFieldPrinter::printInt(StringRef Name, IntTy Int, bool ShouldSkipZero) {
|
||||
Out << FS << Name << ": " << Int;
|
||||
}
|
||||
|
||||
void MDFieldPrinter::printAPInt(StringRef Name, APInt Int, bool IsUnsigned,
|
||||
bool ShouldSkipZero) {
|
||||
void MDFieldPrinter::printAPInt(StringRef Name, const APInt &Int,
|
||||
bool IsUnsigned, bool ShouldSkipZero) {
|
||||
if (ShouldSkipZero && Int.isNullValue())
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user