summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-24 21:30:35 +0000
committerDevang Patel <dpatel@apple.com>2010-03-24 21:30:35 +0000
commit834392fcc63fe4856aa7308195e572aea5f7744e (patch)
tree9504ddf0282a501d5256898f667a1eb1035506ef /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentbff23ca69026d4c73e29f3e85e5f9da7debe7db6 (diff)
downloadbcm5719-llvm-834392fcc63fe4856aa7308195e572aea5f7744e.tar.gz
bcm5719-llvm-834392fcc63fe4856aa7308195e572aea5f7744e.zip
Use SP filename directly instead of SP's context's filename.
llvm-svn: 99429
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 68402b84c2a..e2421eb0702 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -447,8 +447,8 @@ void DwarfDebug::addSourceLine(DIE *Die, const DISubprogram *SP) {
unsigned Line = SP->getLineNumber();
if (!SP->getContext().Verify())
return;
- unsigned FileID = GetOrCreateSourceID(SP->getContext().getDirectory(),
- SP->getContext().getFilename());
+ unsigned FileID = GetOrCreateSourceID(SP->getDirectory(),
+ SP->getFilename());
assert(FileID && "Invalid file id");
addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID);
addUInt(Die, dwarf::DW_AT_decl_line, 0, Line);
OpenPOWER on IntegriCloud