zequanwu added inline comments.
================
Comment at: lldb/test/Shell/SymbolFile/NativePDB/inline_sites_live.cpp:7
+// RUN: %p/Inputs/inline_sites_live.lldbinit 2>&1 | FileCheck %s
+
+inline int bar(int bar_param) {
----------------
labath wrote:
> ```
> void __attribute__((optnone)) use(int) {}
>
> void __attribute__((always_inline)) bar(int param) {
> use(param); // BP_bar
> }
>
> void __attribute__((always_inline)) foo(int param) {
> int local = param+1;
> bar(local);
> use(param); // BP_foo
> use(local);
> }
>
> int main(int argc) {
> foo(argc);
> }
> ```
>
I moved the line `// BP_foo` to the next line, because there are some
inaccuracy in the line table with inlined info. I'll fix it later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121967/new/
https://reviews.llvm.org/D121967
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits