llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp
David Blaikie f1e232d9b0 DebugInfo: Add source code/build instructions for split-dwarf-dwp symbolizer test
Addressing post-commit code review feedback from Paul Robinson on
r303609.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304080 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-27 19:52:20 +00:00

13 lines
301 B
C++

void f1();
__attribute__((always_inline)) void f2() {
f1();
}
void f3() {
f2();
}
To produce split-dwarf-dwp.o{,dwp}, run:
$ clang++ split-dwarf-dwp.cpp -gsplit-dwarf -c -Xclang -fdebug-compilation-dir=Output -fno-split-dwarf-inlining
$ llvm-dwp split-dwarf-dwp.dwo -o split-dwarf-dwp.o.dwp