diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-14 01:07:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-14 01:07:44 +0000 |
commit | a10b8494a50108482302f6f077d72fbc76d776ed (patch) | |
tree | e81579037f550ad65a4f97927e3214b3fd1b6cf2 /include/llvm/CodeGen | |
parent | 7dbf7d8b1cc60f869534b959025aa29b6e1018fb (diff) | |
download | external_llvm-a10b8494a50108482302f6f077d72fbc76d776ed.zip external_llvm-a10b8494a50108482302f6f077d72fbc76d776ed.tar.gz external_llvm-a10b8494a50108482302f6f077d72fbc76d776ed.tar.bz2 |
Don't propagate debug locations to instructions for materializing
constants, since they may not be emited near the other instructions
which get the same line, and this confuses debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 7f3a7c7..7c57648 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -106,12 +106,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 OldInsertPt); + /// leaveLocalValueArea - Reset InsertPt to the given old insert position. + void leaveLocalValueArea(SavePoint Old); virtual ~FastISel(); |