mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 10:30:30 +00:00
switch to using a smallvector to avoid allocations for most normal size instructions.
llvm-svn: 131837
This commit is contained in:
parent
b58a888c57
commit
7eb3367809
@ -147,8 +147,8 @@ size_t LLVMDisasmInstruction(LLVMDisasmContextRef DCR, uint8_t *Bytes,
|
||||
if (!DisAsm->getInstruction(Inst, Size, MemoryObject, PC, /*REMOVE*/ nulls()))
|
||||
return 0;
|
||||
|
||||
std::string InsnStr;
|
||||
raw_string_ostream OS(InsnStr);
|
||||
SmallVector<char, 64> InsnStr;
|
||||
raw_svector_ostream OS(InsnStr);
|
||||
IP->printInst(&Inst, OS);
|
||||
OS.flush();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user