diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2010-04-04 10:31:49 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2010-04-04 10:31:49 +0000 |
commit | 9041ae274b537f7ae7f7a260b233a38d36d20432 (patch) | |
tree | 0376e3d5f31e63dcc674b9c199c653d65cd5cae3 | |
parent | b23569aff0a6d2b231cb93cc4acd0ac060ba560f (diff) | |
download | external_llvm-9041ae274b537f7ae7f7a260b233a38d36d20432.zip external_llvm-9041ae274b537f7ae7f7a260b233a38d36d20432.tar.gz external_llvm-9041ae274b537f7ae7f7a260b233a38d36d20432.tar.bz2 |
CurFn is only used for relocations. Use EmissionDetails.MF->getFunction() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100328 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index a2df2d0..7b8ab9e 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -825,7 +825,8 @@ void JITEmitter::processDebugLoc(DebugLoc DL, bool BeforePrintingInsn) { if (!BeforePrintingInsn) return; // FIXME: This is horribly inefficient. - DILocation CurDLT(DL.getAsMDNode(CurFn->getContext())); + DILocation CurDLT(DL.getAsMDNode( + EmissionDetails.MF->getFunction()->getContext())); if (CurDLT.getScope().getNode() != 0 && PrevDLT.getNode() !=CurDLT.getNode()){ JITEvent_EmittedFunctionDetails::LineStart NextLine; |