Index: include/llvm/CodeGen/PseudoSourceValue.h =================================================================== --- include/llvm/CodeGen/PseudoSourceValue.h +++ include/llvm/CodeGen/PseudoSourceValue.h @@ -40,7 +40,8 @@ ConstantPool, FixedStack, GlobalValueCallEntry, - ExternalSymbolCallEntry + ExternalSymbolCallEntry, + TargetCustom }; private: @@ -63,6 +64,7 @@ bool isGOT() const { return Kind == GOT; } bool isConstantPool() const { return Kind == ConstantPool; } bool isJumpTable() const { return Kind == JumpTable; } + bool isTargetCustom() const { return Kind == TargetCustom; } /// Test whether the memory pointed to by this PseudoSourceValue has a /// constant value. Index: lib/CodeGen/MIRPrinter.cpp =================================================================== --- lib/CodeGen/MIRPrinter.cpp +++ lib/CodeGen/MIRPrinter.cpp @@ -892,6 +892,9 @@ printLLVMNameWithoutPrefix( OS, cast(PVal)->getSymbol()); break; + case PseudoSourceValue::TargetCustom: + OS << "target-custom"; + break; } } printOffset(Op.getOffset());