diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-27 20:51:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-27 20:51:15 +0000 |
commit | 84a74779a1f840524522c8e3938822a0ee29a8a3 (patch) | |
tree | 9f26aac9d4fff00bb0bc8d5adaf2f1502314421e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 7530049b16c0fc6ef8b715d380e8fe5b570601f8 (diff) | |
download | bcm5719-llvm-84a74779a1f840524522c8e3938822a0ee29a8a3.tar.gz bcm5719-llvm-84a74779a1f840524522c8e3938822a0ee29a8a3.zip |
It is FE's responsibility to emit proper directory name.
llvm-svn: 109538
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index b81aad92cbb..64a9b255326 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1753,10 +1753,7 @@ DIE *DwarfDebug::constructScopeDIE(DbgScope *Scope) { /// maps as well. unsigned DwarfDebug::GetOrCreateSourceID(StringRef DirName, StringRef FileName){ unsigned DId; - if (DirName.empty()) { - llvm::sys::Path CWD = llvm::sys::Path::GetCurrentDirectory(); - DirName = StringRef(CWD.c_str(), CWD.size()); - } + assert (DirName.empty() == false && "Invalid directory name!"); StringMap<unsigned>::iterator DI = DirectoryIdMap.find(DirName); if (DI != DirectoryIdMap.end()) { |