David Blaikie | 9a4f3cb | 2016-04-22 21:32:59 +0000 | [diff] [blame] | 1 | void f1() { |
Alexey Samsonov | d3e1213 | 2014-09-05 19:29:45 +0000 | [diff] [blame] | 2 | } |
| 3 | |
David Blaikie | 9a4f3cb | 2016-04-22 21:32:59 +0000 | [diff] [blame] | 4 | inline __attribute__((always_inline)) void f2() { |
| 5 | f1(); |
| 6 | } |
| 7 | |
| 8 | int main() { |
| 9 | f2(); |
Alexey Samsonov | d3e1213 | 2014-09-05 19:29:45 +0000 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | // Build instructions: |
David Blaikie | 9a4f3cb | 2016-04-22 21:32:59 +0000 | [diff] [blame] | 13 | // 1) clang++ -### -gsplit-dwarf split-dwarf-test.cc -o split-dwarf-test |
Alexey Samsonov | d3e1213 | 2014-09-05 19:29:45 +0000 | [diff] [blame] | 14 | // 2) Replace the value "-fdebug-compilation-dir" flag to "Output" |
| 15 | // (this is the temp directory used by lit). |
| 16 | // 3) Manually run clang-cc1, objcopy and ld invocations. |
| 17 | // 4) Copy the binary and .dwo file to the Inputs directory. Make sure the |
| 18 | // .dwo file will be available for symbolizer (use test RUN-lines to copy |
| 19 | // the .dwo file to a directory |
| 20 | // <execution_directory>/<directory_provided_in_fdebug_compilation_dir>. |