diff options
author | Devang Patel <dpatel@apple.com> | 2008-12-17 22:39:29 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-12-17 22:39:29 +0000 |
commit | 854967effe3fed51220511553512692a68dc2f9b (patch) | |
tree | dbf282c0ad873cd1095863956dc2d612590bb9ac /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | c7a21941c5f03fbbc47c550824d2aed1481e92f4 (diff) |
Today the front-ends (llvm-gcc and clang) generate multiple llvm.dbg.compile_units to identify source file for various debug entities. Each llvm.dbg.compile_unit matches one file on the disk. However, the backend only supports one DW_TAG_compile_unit per .o file. The backend selects first compile_unit from the vector to construct DW_TAG_compile_unit entry, which is not correct in all cases.
First step to resolve this is, record file name and directory directly in debug info for various debug entities.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 61befb5cfb..1f4c534f8f 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -59,7 +59,8 @@ class StructType; // Debug info constants. enum { - LLVMDebugVersion = (6 << 16), // Current version of debug information. + LLVMDebugVersion = (7 << 16), // Current version of debug information. + LLVMDebugVersion6 = (6 << 16), // Constant for version 6. LLVMDebugVersion5 = (5 << 16), // Constant for version 5. LLVMDebugVersion4 = (4 << 16), // Constant for version 4. LLVMDebugVersionMask = 0xffff0000 // Mask for version number. |