diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-06-14 13:26:34 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-06-14 13:26:34 +0000 |
commit | 3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a (patch) | |
tree | 69bf9d282fef0d4cfa9ea717c796759697319be0 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | d3c84e671974f2cad4e2d680c7eada9291b777ad (diff) | |
download | bcm5719-llvm-3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a.tar.gz bcm5719-llvm-3062e87a1e563c01fa7cfffc2eb7bbc1c828a80a.zip |
Fix not calling TargetCustom PSVs printer
If the enum value was greater than the starting target custom value,
the custom printer wasn't called.
llvm-svn: 363386
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index 9458745733f..5765415102c 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -1138,7 +1138,7 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST, printLLVMNameWithoutPrefix( OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol()); break; - case PseudoSourceValue::TargetCustom: + default: // FIXME: This is not necessarily the correct MIR serialization format for // a custom pseudo source value, but at least it allows // -print-machineinstrs to work on a target with custom pseudo source |