From 5e73d5bd2e98afda12fa69a7ea83050c69be0d34 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Wed, 24 Jan 2007 18:45:13 +0000 Subject: Repair debug frames as a prelude to eh_frames. Switched to using MachineMoves by value so that clean up is less confusing (these vectors tend to be small.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33488 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineDebugInfo.h | 4 ++-- include/llvm/CodeGen/MachineLocation.h | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'include/llvm/CodeGen') diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h index aa968f49a8..1676f6b85b 100644 --- a/include/llvm/CodeGen/MachineDebugInfo.h +++ b/include/llvm/CodeGen/MachineDebugInfo.h @@ -985,7 +985,7 @@ private: // FrameMoves - List of moves done by a function's prolog. Used to construct // frame maps by debug consumers. - std::vector FrameMoves; + std::vector FrameMoves; public: MachineDebugInfo(); @@ -1145,7 +1145,7 @@ public: /// getFrameMoves - Returns a reference to a list of moves done in the current /// function's prologue. Used to construct frame maps for debug comsumers. - std::vector &getFrameMoves() { return FrameMoves; } + std::vector &getFrameMoves() { return FrameMoves; } }; // End class MachineDebugInfo diff --git a/include/llvm/CodeGen/MachineLocation.h b/include/llvm/CodeGen/MachineLocation.h index ab6a82b14f..023962dd6a 100644 --- a/include/llvm/CodeGen/MachineLocation.h +++ b/include/llvm/CodeGen/MachineLocation.h @@ -79,10 +79,16 @@ private: unsigned LabelID; // Label ID number for post-instruction // address when result of move takes // effect. - const MachineLocation Destination; // Move to location. - const MachineLocation Source; // Move from location. + MachineLocation Destination; // Move to location. + MachineLocation Source; // Move from location. public: + MachineMove() + : LabelID(0) + , Destination() + , Source() + {} + MachineMove(unsigned ID, MachineLocation &D, MachineLocation &S) : LabelID(ID) , Destination(D) -- cgit v1.2.3-70-g09d2