mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use utohex_buffer instead of utohexstr to avoid creating a temporary
string in the .ll and .s printers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -564,7 +564,9 @@ void AsmPrinter::PrintSLEB128(int Value) const {
|
||||
/// PrintHex - Print a value as a hexidecimal value.
|
||||
///
|
||||
void AsmPrinter::PrintHex(int Value) const {
|
||||
O << "0x" << utohexstr(static_cast<unsigned>(Value));
|
||||
char Buffer[20];
|
||||
|
||||
O << "0x" << utohex_buffer(static_cast<unsigned>(Value), Buffer+20);
|
||||
}
|
||||
|
||||
/// EOL - Print a newline character to asm stream. If a comment is present
|
||||
|
Reference in New Issue
Block a user