From edc1753ba342c6b9ab1f0ab9e047a9ee82b0c079 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 14 Mar 2014 16:33:32 +0000 Subject: DwarfDebug: Remove some needless recursion. llvm-svn: 203946 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e4ec6e7e40e..1e3da83900c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -689,8 +689,10 @@ unsigned DwarfDebug::getOrCreateSourceID(StringRef FileName, StringRef DirName, CUID = 0; // If FE did not provide a file name, then assume stdin. - if (FileName.empty()) - return getOrCreateSourceID("", StringRef(), CUID); + if (FileName.empty()) { + FileName = ""; + DirName = ""; + } // TODO: this might not belong here. See if we can factor this better. if (DirName == CompilationDir) -- cgit v1.2.3