From 5f2f69b6481cab766723edc74825eaa1143f4f62 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 23 Jul 2010 23:04:41 +0000 Subject: [PATCH] Revert r109262. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109285 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f41b7693bad..5618f09efe2 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1805,11 +1805,6 @@ void DwarfDebug::constructCompileUnit(const MDNode *N) { DICompileUnit DIUnit(N); StringRef FN = DIUnit.getFilename(); StringRef Dir = DIUnit.getDirectory(); - if (Dir.empty()) { - sys::Path AbsFileDirName(FN); - AbsFileDirName.makeAbsolute(); - Dir = AbsFileDirName.getDirname(); - } unsigned ID = GetOrCreateSourceID(Dir, FN); DIE *Die = new DIE(dwarf::DW_TAG_compile_unit);