summaryrefslogtreecommitdiff
path: root/test/MC/MachO
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-17 01:52:11 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-17 01:52:11 +0000
commitfd69cf9ba4b4a3f29523e2367a569bd84e0fdad8 (patch)
treeb9a4c9ef4ad417fb62b246f05d8f8a4e5c00d8c0 /test/MC/MachO
parent6a6b6f50af7fb209c96b359ecd035c6309e5f3f3 (diff)
DebugInfo: Improve reuse of file table entries in asm debug info
The previous deduping strategy was woefully inadequate - it only considered the most recent file used and avoided emitting a duplicate in that case - never considering the a/b/a scenario. It was also lacking when it came to directory paths as the previous filename would never match the current if the filename had been split into file and directory components. This change builds caching functionality into the line table at the lowest level in an optional form (a file number of 0 indicates that one should be chosen and returned) and will eventually be reused by the normal source level debugging DWARF emission. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r--test/MC/MachO/gen-dwarf-cpp.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/MC/MachO/gen-dwarf-cpp.s b/test/MC/MachO/gen-dwarf-cpp.s
index c32bcbf580f..d5cda27ec58 100644
--- a/test/MC/MachO/gen-dwarf-cpp.s
+++ b/test/MC/MachO/gen-dwarf-cpp.s
@@ -4,6 +4,7 @@
# 100 "t.s" 1
.globl _bar
_bar:
+ movl $0, %eax
# 3 "inc/g.s"
movl $0, %eax
L1: leave