summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp10
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwobin1056 -> 1056 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.obin2968 -> 3352 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-dwp.cpp8
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-dwp.obin4474 -> 4380 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwpbin1600 -> 1576 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp15
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwobin1040 -> 1104 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.obin2992 -> 3656 bytes
-rwxr-xr-xllvm/test/DebugInfo/Inputs/split-dwarf-testbin9208 -> 9576 bytes
-rwxr-xr-xllvm/test/DebugInfo/Inputs/split-dwarf-test-nogmltbin9128 -> 9496 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-test.cpp13
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-test.dwobin1377 -> 1064 bytes
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
index 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
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
index 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
Binary files differ
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
index 2bf4fe3e494..4df6455ce8b 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
index 20eff18217f..17018f01b03 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-dwp.o.dwp
Binary files differ
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
index 4df9894b089..8aca4cb1a5a 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
index aa4ab4bc76f..4cb64b54a7d 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test b/llvm/test/DebugInfo/Inputs/split-dwarf-test
index 4d6aa0cd98a..a7024cce4b9 100755
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt b/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
index 6a340aa47e6..6f7627eb607 100755
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
Binary files differ
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
index 588374d7d21..f123d732301 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
Binary files differ
OpenPOWER on IntegriCloud