summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/FastISel.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-27 22:32:04 +0000
committerDevang Patel <dpatel@apple.com>2011-06-27 22:32:04 +0000
commit016c5829a5dacc3b28cb264b4b6d166552e3d568 (patch)
tree814a23151e6711fc0cad85e1a7ed303cf13b9646 /include/llvm/CodeGen/FastISel.h
parent81ce26a410a2bcd751f40022d78e20c95bf7b60e (diff)
downloadllvm-016c5829a5dacc3b28cb264b4b6d166552e3d568.tar.gz
llvm-016c5829a5dacc3b28cb264b4b6d166552e3d568.tar.bz2
llvm-016c5829a5dacc3b28cb264b4b6d166552e3d568.tar.xz
During bottom up fast-isel, instructions emitted to materalize registers are at top of basic block and do not have debug location. This may misguide debugger while entering the basic block and sometimes debugger provides semi useful view of current location to developer by picking up previous known location as current location. Assign a sensible location to the first instruction in a basic block, if it does not have one location derived from source file, so that debugger can provide meaningful user experience to developers in edge cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r--include/llvm/CodeGen/FastISel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h
index 962a4e2635..14960a3808 100644
--- a/include/llvm/CodeGen/FastISel.h
+++ b/include/llvm/CodeGen/FastISel.h
@@ -118,6 +118,10 @@ public:
DebugLoc DL;
};
+ /// recomputeDebugLocForMaterializedRegs - Recompute debug location for
+ /// very first instruction in a basic block.
+ void recomputeDebugLocForMaterializedRegs();
+
/// enterLocalValueArea - Prepare InsertPt to begin inserting instructions
/// into the local value area and return the old insert position.
SavePoint enterLocalValueArea();