Index: lib/IR/AsmWriter.cpp =================================================================== --- lib/IR/AsmWriter.cpp +++ lib/IR/AsmWriter.cpp @@ -31,6 +31,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/Operator.h" +#include "llvm/IR/Statepoint.h" #include "llvm/IR/TypeFinder.h" #include "llvm/IR/UseListOrder.h" #include "llvm/IR/ValueSymbolTable.h" @@ -2970,6 +2971,18 @@ I.getAllMetadata(InstMD); printMetadataAttachments(InstMD, ", "); + // Print additional comment for gc.statepoint relocates in a form of + // "; (, )" + if (isGCRelocate(&I)) { + GCRelocateOperands GCOps(&I); + + Out << " ; ("; + writeOperand(GCOps.basePtr(), false); + Out << ", "; + writeOperand(GCOps.derivedPtr(), false); + Out << ")"; + } + // Print a nice comment. printInfoComment(I); }