aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-30 22:21:03 +0000
committerDan Gohman <gohman@apple.com>2008-06-30 22:21:03 +0000
commit99fe47bc81d53762454ff112ab34378b00299b5a (patch)
tree140bdaedba52f1132ca459ceb2012a34a1f01d6d
parentf667480d84a99a34adcac217e1a4c9fb7e2bfae6 (diff)
downloadexternal_llvm-99fe47bc81d53762454ff112ab34378b00299b5a.tar.gz
external_llvm-99fe47bc81d53762454ff112ab34378b00299b5a.tar.bz2
external_llvm-99fe47bc81d53762454ff112ab34378b00299b5a.zip
Use a simpler but equivalent form of RecordSource.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52931 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index c0b0e0356f..dc4dcc92a2 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -3210,8 +3210,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
assert(DD && "Not a debug information descriptor");
SubprogramDesc *Subprogram = cast<SubprogramDesc>(DD);
const CompileUnitDesc *CompileUnit = Subprogram->getFile();
- unsigned SrcFile = MMI->RecordSource(CompileUnit->getDirectory(),
- CompileUnit->getFileName());
+ unsigned SrcFile = MMI->RecordSource(CompileUnit);
// Record the source line but does create a label. It will be emitted
// at asm emission time.
MMI->RecordSourceLine(Subprogram->getLine(), 0, SrcFile);