summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
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
commite09a1c88cfe3a458b03145398fc3e031178b628f (patch)
tree5ecb06de115d957fbcbc76cf1f1ae6c380e49a86 /llvm/lib/CodeGen/SelectionDAG
parent0d3628946f756d6159daaf7b22e3336c30857817 (diff)
downloadbcm5719-llvm-e09a1c88cfe3a458b03145398fc3e031178b628f.tar.gz
bcm5719-llvm-e09a1c88cfe3a458b03145398fc3e031178b628f.zip
Use a simpler but equivalent form of RecordSource.
llvm-svn: 52931
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index c0b0e0356f3..dc4dcc92a21 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud