summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
committerpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
commit31eb748944903b7f4f38afda9851951ca9dfc1ae (patch)
tree9b95b6ea45d0874d75eb05b90c0840e191416439 /gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp
parentDon't try to handle IPv4-compatible IPv6 addresses (diff)
downloadwireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.tar.xz
wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.zip
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r--gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp b/gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp
index 804a4c3dad6..b29e62bf1aa 100644
--- a/gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp
+++ b/gnu/llvm/lib/CodeGen/PseudoSourceValue.cpp
@@ -29,7 +29,10 @@ PseudoSourceValue::PseudoSourceValue(PSVKind Kind) : Kind(Kind) {}
PseudoSourceValue::~PseudoSourceValue() {}
void PseudoSourceValue::printCustom(raw_ostream &O) const {
- O << PSVNames[Kind];
+ if (Kind < TargetCustom)
+ O << PSVNames[Kind];
+ else
+ O << "TargetCustom" << Kind;
}
bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const {