summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-10-28 19:50:08 +0000
committerDevang Patel <dpatel@apple.com>2010-10-28 19:50:08 +0000
commit1c75865037496f08a0a137704e49571aa62f14c1 (patch)
treec33f1fc7a063e4c02d9c87853e79e3003972dc71 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent99811141c14f63bc469191ea9ecec22160c6ed6a (diff)
downloadbcm5719-llvm-1c75865037496f08a0a137704e49571aa62f14c1.tar.gz
bcm5719-llvm-1c75865037496f08a0a137704e49571aa62f14c1.zip
Do not work too hard to find type's file info. There is a special field to record file info.
llvm-svn: 117588
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 b9c7d7a33ed..55c2e24eb92 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -568,8 +568,8 @@ void DwarfDebug::addSourceLine(DIE *Die, DIType Ty) {
unsigned Line = Ty.getLineNumber();
if (Line == 0 || !Ty.getContext().Verify())
return;
- unsigned FileID = GetOrCreateSourceID(Ty.getContext().getDirectory(),
- Ty.getContext().getFilename());
+ unsigned FileID = GetOrCreateSourceID(Ty.getDirectory(),
+ Ty.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