File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
llvm/lib/Target/AMDGPU/AsmParser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77// ===----------------------------------------------------------------------===//
88
99#include " AMDKernelCodeT.h"
10+ #include " MCTargetDesc/AMDGPUInstPrinter.h"
1011#include " MCTargetDesc/AMDGPUMCExpr.h"
1112#include " MCTargetDesc/AMDGPUMCKernelDescriptor.h"
1213#include " MCTargetDesc/AMDGPUMCTargetDesc.h"
@@ -1133,7 +1134,8 @@ class AMDGPUOperand : public MCParsedAsmOperand {
11331134 void print (raw_ostream &OS) const override {
11341135 switch (Kind) {
11351136 case Register:
1136- OS << " <register " << getReg () << " mods: " << Reg.Mods << ' >' ;
1137+ OS << " <register " << AMDGPUInstPrinter::getRegisterName (getReg ())
1138+ << " mods: " << Reg.Mods << ' >' ;
11371139 break ;
11381140 case Immediate:
11391141 OS << ' <' << getImm ();
You can’t perform that action at this time.
0 commit comments