diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-11 02:38:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-11 02:38:11 +0000 |
commit | d84ccfaf50c7843f31ffc74a8a8e33f779453d6e (patch) | |
tree | f4b6d66d0073522dffc3f98066814aba0e76edc8 /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | baf81af7591dedb2587bf8e439e07a97dbe454f9 (diff) | |
download | external_llvm-d84ccfaf50c7843f31ffc74a8a8e33f779453d6e.zip external_llvm-d84ccfaf50c7843f31ffc74a8a8e33f779453d6e.tar.gz external_llvm-d84ccfaf50c7843f31ffc74a8a8e33f779453d6e.tar.bz2 |
Change getFrameMoves to return a const reference.
To add a frame now there is a dedicated addFrameMove which also takes
care of constructing the move itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index a3acec8..b719757 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -234,7 +234,12 @@ public: /// getFrameMoves - Returns a reference to a list of moves done in the current /// function's prologue. Used to construct frame maps for debug and exception /// handling comsumers. - std::vector<MachineMove> &getFrameMoves() { return FrameMoves; } + const std::vector<MachineMove> &getFrameMoves() { return FrameMoves; } + + void addFrameMove(MCSymbol *Label, const MachineLocation &Dst, + const MachineLocation &Src) { + FrameMoves.push_back(MachineMove(Label, Dst, Src)); + } /// getCompactUnwindEncoding - Returns the compact unwind encoding for a /// function if the target supports the encoding. This encoding replaces a |