diff options
author | Derek Schuff <dschuff@google.com> | 2015-11-16 21:12:41 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2015-11-16 21:12:41 +0000 |
commit | 46e331688800d785770f64c41804e6271127dd80 (patch) | |
tree | e25a525eb0fc7631c209811630b33dbe16f16516 /llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h | |
parent | 4ed47784197e3922e0aa41cc89c6fd7d82221566 (diff) | |
download | llvm-46e331688800d785770f64c41804e6271127dd80.zip llvm-46e331688800d785770f64c41804e6271127dd80.tar.gz llvm-46e331688800d785770f64c41804e6271127dd80.tar.bz2 |
[WebAssembly] Fix function return type printing
Summary:
Previously return type information for a function was derived from
return dag nodes. But this didn't work for dags with != return node. So
instead compute it directly from the LLVM function as is done for imports.
Differential Revision: http://reviews.llvm.org/D14593
llvm-svn: 253251
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h index 6e8b1dc..9c23412 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h @@ -28,7 +28,6 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo { MachineFunction &MF; std::vector<MVT> Params; - std::vector<MVT> Results; /// A mapping from CodeGen vreg index to WebAssembly register number. std::vector<unsigned> WARegs; @@ -48,9 +47,6 @@ public: void addParam(MVT VT) { Params.push_back(VT); } const std::vector<MVT> &getParams() const { return Params; } - void addResult(MVT VT) { Results.push_back(VT); } - const std::vector<MVT> &getResults() const { return Results; } - static const unsigned UnusedReg = -1u; void stackifyVReg(unsigned VReg) { |