diff options
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
13 files changed, 42 insertions, 4 deletions
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp new file mode 100644 index 00000000000..e5255e847e8 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp @@ -0,0 +1,10 @@ +void f1(); +__attribute__((always_inline)) void f2() { + f1(); +} +void f3() { + f2(); +} + +// $ clang++ split-dwarf-addr-object-relocation.cpp -gsplit-dwarf -c Xclang \ +// -fdebug-compilation-dir -Xclang . diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo Binary files differindex 2a3bc57caa6..814b80246ce 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o Binary files differindex b6993c6cae2..b77c31b9579 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp index ced32e41008..629d8b6aa8f 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp @@ -1,5 +1,5 @@ -__attribute__((optnone)) void f1() {} -inline __attribute__((always_inline)) void f2() { +void f1() {} +__attribute__((always_inline)) inline void f2() { f1(); } // throw a gap in the address range to force use of DW_AT_ranges, ranges_base, @@ -17,6 +17,6 @@ int main() { // void other1() {} // __attribute__((nodebug)) void other2() {} // void other3() {} -// $ clang++ other.cpp split-dwarf-dwp.cpp -gsplit-dwarf -c -Xclang -fdebug-compilation-dir -Xclang Output -fno-split-dwarf-inlining -// $ llvm-dwp other.dwo other.dwo split-dwarf-dwp.dwo -o test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp +// $ clang++ other.cpp split-dwarf-dwp.cpp -gsplit-dwarf -c -Xclang -fdebug-compilation-dir -Xclang . -fno-split-dwarf-inlining +// $ llvm-dwp other.dwo split-dwarf-dwp.dwo -o test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp // $ ld -r other.o split-dwarf-dwp.o -o test/DebugInfo/Inputs/split-dwarf-dwp.o diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o Binary files differindex 2bf4fe3e494..4df6455ce8b 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp Binary files differindex 20eff18217f..17018f01b03 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp new file mode 100644 index 00000000000..85276ca4b2c --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp @@ -0,0 +1,15 @@ +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 diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo Binary files differindex 4df9894b089..8aca4cb1a5a 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o Binary files differindex aa4ab4bc76f..4cb64b54a7d 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test b/llvm/test/DebugInfo/Inputs/split-dwarf-test Binary files differindex 4d6aa0cd98a..a7024cce4b9 100755 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-test +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt b/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt Binary files differindex 6a340aa47e6..6f7627eb607 100755 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-test.cpp new file mode 100644 index 00000000000..8c85330d89c --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.cpp @@ -0,0 +1,13 @@ +void f1() {} +__attribute__((always_inline)) inline void f2() { + f1(); +} +int main() { + f2(); +} + +// $ clang++ split-dwarf-test.cpp -gsplit-dwarf -Xclang \ +// -fdebug-compilation-dir -Xclang . -o split-dwarf-test +// $ clang++ split-dwarf-test.cpp -gsplit-dwarf -Xclang \ +// -fdebug-compilation-dir -Xclang . -fno-split-dwarf-inlining \ +// -o split-dwarf-test-nogmlt diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo Binary files differindex 588374d7d21..f123d732301 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo |