summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-10-03 08:10:01 +0000
committerEric Christopher <echristo@gmail.com>2012-10-03 08:10:01 +0000
commit76ad43c6e1619ed4c087b8ccb2cd573eb9d7093e (patch)
tree4afc339690b9fd201d020cca8a297fa2d71e768a /include
parent8e8f8724e17182b8faddd6b009e7f037e0b908e7 (diff)
downloadllvm-76ad43c6e1619ed4c087b8ccb2cd573eb9d7093e.tar.gz
llvm-76ad43c6e1619ed4c087b8ccb2cd573eb9d7093e.tar.bz2
llvm-76ad43c6e1619ed4c087b8ccb2cd573eb9d7093e.tar.xz
Revert 165051-165049 while looking into the foreach.m failure in
more detail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/FastISel.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h
index 7f240f563a..7cb96952aa 100644
--- a/include/llvm/CodeGen/FastISel.h
+++ b/include/llvm/CodeGen/FastISel.h
@@ -131,12 +131,17 @@ public:
/// into the current block.
void recomputeInsertPt();
+ struct SavePoint {
+ MachineBasicBlock::iterator InsertPt;
+ DebugLoc DL;
+ };
+
/// enterLocalValueArea - Prepare InsertPt to begin inserting instructions
/// into the local value area and return the old insert position.
- MachineBasicBlock::iterator enterLocalValueArea();
+ SavePoint enterLocalValueArea();
/// leaveLocalValueArea - Reset InsertPt to the given old insert position.
- void leaveLocalValueArea(MachineBasicBlock::iterator Old);
+ void leaveLocalValueArea(SavePoint Old);
virtual ~FastISel();