[llvm-commits] [llvm] r139676 - in /llvm/trunk: include/llvm/Support/PathV1.h lib/Object/ObjectFile.cpp lib/Support/Path.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Sep 13 17:39:22 PDT 2011
Author: d0k
Date: Tue Sep 13 19:39:22 2011
New Revision: 139676
URL: http://llvm.org/viewvc/llvm-project?rev=139676&view=rev
Log:
ObjectFile: Add support for mach-o-style dSYM companion files.
Modified:
llvm/trunk/include/llvm/Support/PathV1.h
llvm/trunk/lib/Object/ObjectFile.cpp
llvm/trunk/lib/Support/Path.cpp
Modified: llvm/trunk/include/llvm/Support/PathV1.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PathV1.h?rev=139676&r1=139675&r2=139676&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PathV1.h (original)
+++ llvm/trunk/include/llvm/Support/PathV1.h Tue Sep 13 19:39:22 2011
@@ -733,6 +733,7 @@
Mach_O_DynamicLinker_FileType, ///< The Mach-O dynamic linker
Mach_O_Bundle_FileType, ///< Mach-O Bundle file
Mach_O_DynamicallyLinkedSharedLibStub_FileType, ///< Mach-O Shared lib stub
+ Mach_O_DSYMCompanion_FileType, ///< Mach-O dSYM companion file
COFF_FileType ///< COFF object file or lib
};
Modified: llvm/trunk/lib/Object/ObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ObjectFile.cpp?rev=139676&r1=139675&r2=139676&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/ObjectFile.cpp Tue Sep 13 19:39:22 2011
@@ -45,6 +45,7 @@
case sys::Mach_O_DynamicLinker_FileType:
case sys::Mach_O_Bundle_FileType:
case sys::Mach_O_DynamicallyLinkedSharedLibStub_FileType:
+ case sys::Mach_O_DSYMCompanion_FileType:
return createMachOObjectFile(Object);
case sys::COFF_FileType:
return createCOFFObjectFile(Object);
Modified: llvm/trunk/lib/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Path.cpp?rev=139676&r1=139675&r2=139676&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Path.cpp (original)
+++ llvm/trunk/lib/Support/Path.cpp Tue Sep 13 19:39:22 2011
@@ -121,7 +121,7 @@
case 7: return Mach_O_DynamicLinker_FileType;
case 8: return Mach_O_Bundle_FileType;
case 9: return Mach_O_DynamicallyLinkedSharedLibStub_FileType;
- case 10: break; // FIXME: MH_DSYM companion file with only debug.
+ case 10: return Mach_O_DSYMCompanion_FileType;
}
break;
}
More information about the llvm-commits
mailing list