mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
AsmWriterEmitter: OpInfo2 should be unsigned 16-bit.
Fix an issue in r163814. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9aba7ea472
commit
785a41d138
@ -436,7 +436,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
|||||||
|
|
||||||
if (BitsLeft < 16) {
|
if (BitsLeft < 16) {
|
||||||
// Add a second OpInfo table only when it is necessary.
|
// Add a second OpInfo table only when it is necessary.
|
||||||
O<<" static const short OpInfo2[] = {\n";
|
O<<" static const uint16_t OpInfo2[] = {\n";
|
||||||
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i) {
|
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i) {
|
||||||
O << " " << OpcodeInfo[i].second << "U,\t// "
|
O << " " << OpcodeInfo[i].second << "U,\t// "
|
||||||
<< NumberedInstructions[i]->TheDef->getName() << "\n";
|
<< NumberedInstructions[i]->TheDef->getName() << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user