Chromium Code Reviews| Index: src/IceTargetLowering.h |
| diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h |
| index 3de6965d60eb8b4949617f09fed5e6078718ff0a..aa3f0a237c770e08f7c2b6710c3654efa40b25ab 100644 |
| --- a/src/IceTargetLowering.h |
| +++ b/src/IceTargetLowering.h |
| @@ -253,7 +253,9 @@ public: |
| virtual void reserveFixedAllocaArea(size_t Size, size_t Align) = 0; |
| virtual int32_t getFrameFixedAllocaOffset() const = 0; |
| virtual uint32_t maxOutArgsSizeBytes() const { return 0; } |
| - |
| + virtual uint32_t getOffset(uint32_t CurrentOffset, uint32_t Size) const { |
|
Jim Stichnoth
2017/01/11 04:55:54
I would prefer a more specific method name. Maybe
Stefan Maksimovic
2017/01/11 09:25:25
Done.
|
| + return -(CurrentOffset + Size); |
| + } |
| /// Return whether a 64-bit Variable should be split into a Variable64On32. |
| virtual bool shouldSplitToVariable64On32(Type Ty) const = 0; |