2 __attribute__((always_inline
)) inline void f2() {
5 // throw a gap in the address range to force use of DW_AT_ranges, ranges_base,
6 // range contribution in the .dwo file, etc.
7 __attribute__((nodebug
)) void gap() {
13 // To produce split-dwarf-dwp.o{,dwp}, Create another file that has ranges, so
14 // the ranges_base of the CU for split-dwarf-dwp.cpp is non-zero.
18 // __attribute__((nodebug)) void other2() {}
20 // $ clang++ other.cpp split-dwarf-dwp.cpp -gsplit-dwarf -c -Xclang -fdebug-compilation-dir -Xclang . -fno-split-dwarf-inlining
21 // $ llvm-dwp other.dwo split-dwarf-dwp.dwo -o test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
22 // $ ld -r other.o split-dwarf-dwp.o -o test/DebugInfo/Inputs/split-dwarf-dwp.o