From: David Blaikie Date: Sat, 27 May 2017 19:52:20 +0000 (+0000) Subject: DebugInfo: Add source code/build instructions for split-dwarf-dwp symbolizer test X-Git-Tag: llvmorg-5.0.0-rc1~4089 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b91deb68dd9880dc42d7393d1bb20c54409c5fd;p=platform%2Fupstream%2Fllvm.git DebugInfo: Add source code/build instructions for split-dwarf-dwp symbolizer test Addressing post-commit code review feedback from Paul Robinson on r303609. llvm-svn: 304080 --- diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp new file mode 100644 index 0000000..b07a153 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp @@ -0,0 +1,12 @@ +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