File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,8 @@ class MCContext {
190
190
SmallString<128 > CompilationDir;
191
191
192
192
// / Prefix replacement map for source file information.
193
- std::map<const std::string, const std::string> DebugPrefixMap;
193
+ std::map<std::string, const std::string, std::greater<std::string>>
194
+ DebugPrefixMap;
194
195
195
196
// / The main file name if passed in explicitly.
196
197
std::string MainFileName;
Original file line number Diff line number Diff line change 1
- # RUN: rm -rf %t.foo && mkdir %t.foo && cd %t.foo
2
- # RUN: cp %s %t.foo/src.s
1
+ # RUN: rm -rf %t.foo && mkdir -p %t.foo/bar && cd %t.foo
2
+ # RUN: cp %s %t.foo/src.s && cp %s %t.foo/bar/src.s
3
3
4
4
# RUN: llvm-mc -triple=x86_64 -g -dwarf-version=4 src.s -filetype=obj -o nomap.4.o
5
5
# RUN: llvm-dwarfdump -v -debug-info -debug-line nomap.4.o | FileCheck --check-prefix=NO_MAP_V4 %s
11
11
# RUN: llvm-mc -triple=x86_64 -g -dwarf-version=5 src.s -filetype=obj -o map.5.o -fdebug-prefix-map=%t.foo=src_root
12
12
# RUN: llvm-dwarfdump -v -debug-info -debug-line map.5.o | FileCheck --check-prefix=MAP_V5 %s
13
13
14
- # RUN: llvm-mc -triple=x86_64 -g -dwarf-version=4 %t.foo/src.s -filetype=obj -o mapabs.4.o -fdebug-prefix-map=%t.foo=/src_root
14
+ # RUN: cd %t.foo/bar
15
+ # RUN: llvm-mc -triple=x86_64 -g -dwarf-version=4 %t.foo%{fs-sep}bar%{fs-sep}src.s -filetype=obj -o mapabs.4.o -fdebug-prefix-map=%t.foo=/broken_root -fdebug-prefix-map=%t.foo%{fs-sep}bar=/src_root
15
16
# RUN: llvm-dwarfdump -v -debug-info -debug-line mapabs.4.o | FileCheck --check-prefix=MAPABS_V4 %s
16
- # RUN: llvm-mc -triple=x86_64 -g -dwarf-version=5 %t.foo/ src.s -filetype=obj -o mapabs.5.o -fdebug-prefix-map=%t.foo=/src_root
17
+ # RUN: llvm-mc -triple=x86_64 -g -dwarf-version=5 %t.foo%{fs-sep}bar%{fs-sep} src.s -filetype=obj -o mapabs.5.o -fdebug-prefix-map=%t.foo%{fs-sep}bar =/src_root -fdebug-prefix-map=%t.foo=/broken_root
17
18
# RUN: llvm-dwarfdump -v -debug-info -debug-line mapabs.5.o | FileCheck --check-prefix=MAPABS_V5 %s
18
19
19
20
f:
You can’t perform that action at this time.
0 commit comments