diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-06-22 18:37:38 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-06-22 18:37:38 +0000 |
commit | 5b3fca50a08865f0db55fc92ad1c037a04e12177 (patch) | |
tree | 998e3b634ae4bbd2829c36ff98b0fa70e3cda198 /lib/Target/Hexagon | |
parent | 5729b8ea01739cf9b1171f0a4349275bc8124756 (diff) | |
download | external_llvm-5b3fca50a08865f0db55fc92ad1c037a04e12177.zip external_llvm-5b3fca50a08865f0db55fc92ad1c037a04e12177.tar.gz external_llvm-5b3fca50a08865f0db55fc92ad1c037a04e12177.tar.bz2 |
The getRegForInlineAsmConstraint function should only accept MVT value types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon')
-rw-r--r-- | lib/Target/Hexagon/HexagonISelLowering.cpp | 4 | ||||
-rw-r--r-- | lib/Target/Hexagon/HexagonISelLowering.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Hexagon/HexagonISelLowering.cpp b/lib/Target/Hexagon/HexagonISelLowering.cpp index 2b0fa5e..ab8a767 100644 --- a/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -1590,11 +1590,11 @@ const { std::pair<unsigned, const TargetRegisterClass*> HexagonTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint, - EVT VT) const { + MVT VT) const { if (Constraint.size() == 1) { switch (Constraint[0]) { case 'r': // R0-R31 - switch (VT.getSimpleVT().SimpleTy) { + switch (VT.SimpleTy) { default: llvm_unreachable("getRegForInlineAsmConstraint Unhandled data type"); case MVT::i32: diff --git a/lib/Target/Hexagon/HexagonISelLowering.h b/lib/Target/Hexagon/HexagonISelLowering.h index 70642e6..e00f787 100644 --- a/lib/Target/Hexagon/HexagonISelLowering.h +++ b/lib/Target/Hexagon/HexagonISelLowering.h @@ -150,7 +150,7 @@ namespace llvm { std::pair<unsigned, const TargetRegisterClass*> getRegForInlineAsmConstraint(const std::string &Constraint, - EVT VT) const; + MVT VT) const; // Intrinsics virtual SDValue LowerINTRINSIC_WO_CHAIN(SDValue Op, |