summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-14 21:14:50 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-14 21:14:50 +0000
commitc3ba7508f686178fd843c51b19bd72b3b64745a2 (patch)
tree414964f86db57af3f574722e2f3d915f233929f2 /llvm/lib/CodeGen/MIRPrinter.cpp
parent50b826fb7503be5e9eafbd11569c195f5e307108 (diff)
downloadbcm5719-llvm-c3ba7508f686178fd843c51b19bd72b3b64745a2.tar.gz
bcm5719-llvm-c3ba7508f686178fd843c51b19bd72b3b64745a2.zip
MIR Serialization: Serialize the external symbol call entry pseudo source
values. llvm-svn: 245098
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 7e546eb845f..d70b5c412f1 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -767,9 +767,10 @@ void MIPrinter::print(const MachineMemOperand &Op) {
cast<GlobalValuePseudoSourceValue>(PVal)->getValue()->printAsOperand(
OS, /*PrintType=*/false, MST);
break;
- default:
- // TODO: Print the other pseudo source values.
- OS << "<unserializable pseudo value>";
+ case PseudoSourceValue::ExternalSymbolCallEntry:
+ OS << '$';
+ printLLVMNameWithoutPrefix(
+ OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol());
break;
}
}
OpenPOWER on IntegriCloud