llvm-for-llvmta/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp

16 lines
402 B
C++
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
void f1();
__attribute__((always_inline)) inline void f2() {
f1();
}
void f3() {
f2();
}
// $ cat > other.cpp
// extern int i;
// int i;
// $ clang++ other.cpp split-dwarf-multiple-cu.cpp -g -c -Xclang \
// -fdebug-compilation-dir -Xclang . -emit-llvm -S
// $ llvm-link other.ll split-dwarf-multiple-cu.ll -o split-dwarf-multiple-cu.bc
// $ clang++ -gsplit-dwarf split-dwarf-multiple-cu.bc -c