mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 15:24:21 +00:00
ARM64: format register strings without creating a local Twine.
It was causing horrible failures on some build-bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -16,6 +16,7 @@
|
|||||||
#include "MCTargetDesc/ARM64AddressingModes.h"
|
#include "MCTargetDesc/ARM64AddressingModes.h"
|
||||||
#include "MCTargetDesc/ARM64BaseInfo.h"
|
#include "MCTargetDesc/ARM64BaseInfo.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
|
#include "llvm/ADT/StringExtras.h"
|
||||||
#include "llvm/MC/MCInst.h"
|
#include "llvm/MC/MCInst.h"
|
||||||
#include "llvm/MC/MCExpr.h"
|
#include "llvm/MC/MCExpr.h"
|
||||||
#include "llvm/MC/MCRegisterInfo.h"
|
#include "llvm/MC/MCRegisterInfo.h"
|
||||||
@ -1329,14 +1330,13 @@ void ARM64InstPrinter::printImplicitlyTypedVectorList(const MCInst *MI,
|
|||||||
template <unsigned NumLanes, char LaneKind>
|
template <unsigned NumLanes, char LaneKind>
|
||||||
void ARM64InstPrinter::printTypedVectorList(const MCInst *MI, unsigned OpNum,
|
void ARM64InstPrinter::printTypedVectorList(const MCInst *MI, unsigned OpNum,
|
||||||
raw_ostream &O) {
|
raw_ostream &O) {
|
||||||
Twine Suffix;
|
std::string Suffix(".");
|
||||||
if (NumLanes)
|
if (NumLanes)
|
||||||
Suffix = Twine('.') + Twine(NumLanes) + Twine(LaneKind);
|
Suffix += itostr(NumLanes) + LaneKind;
|
||||||
else
|
else
|
||||||
Suffix = Twine('.') + Twine(LaneKind);
|
Suffix += LaneKind;
|
||||||
|
|
||||||
SmallString<8> Buf;
|
printVectorList(MI, OpNum, O, Suffix);
|
||||||
printVectorList(MI, OpNum, O, Suffix.toStringRef(Buf));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM64InstPrinter::printVectorIndex(const MCInst *MI, unsigned OpNum,
|
void ARM64InstPrinter::printVectorIndex(const MCInst *MI, unsigned OpNum,
|
||||||
|
Reference in New Issue
Block a user