mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Twines: Don't allow implicit conversion from integers, this is too tricky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -252,22 +252,22 @@ namespace llvm {
|
||||
}
|
||||
|
||||
/// Construct a twine to print \arg Val as an unsigned decimal integer.
|
||||
Twine(const uint32_t &Val)
|
||||
explicit Twine(const uint32_t &Val)
|
||||
: LHS(&Val), LHSKind(UDec32Kind), RHSKind(EmptyKind) {
|
||||
}
|
||||
|
||||
/// Construct a twine to print \arg Val as a signed decimal integer.
|
||||
Twine(const int32_t &Val)
|
||||
explicit Twine(const int32_t &Val)
|
||||
: LHS(&Val), LHSKind(SDec32Kind), RHSKind(EmptyKind) {
|
||||
}
|
||||
|
||||
/// Construct a twine to print \arg Val as an unsigned decimal integer.
|
||||
Twine(const uint64_t &Val)
|
||||
explicit Twine(const uint64_t &Val)
|
||||
: LHS(&Val), LHSKind(UDec64Kind), RHSKind(EmptyKind) {
|
||||
}
|
||||
|
||||
/// Construct a twine to print \arg Val as a signed decimal integer.
|
||||
Twine(const int64_t &Val)
|
||||
explicit Twine(const int64_t &Val)
|
||||
: LHS(&Val), LHSKind(SDec64Kind), RHSKind(EmptyKind) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user