summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rwxr-xr-xllvm/test/DebugInfo/Inputs/split-dwarf-testbin9379 -> 9208 bytes
-rwxr-xr-xllvm/test/DebugInfo/Inputs/split-dwarf-test-nogmltbin0 -> 9128 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-test.cc13
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-test.dwobin1609 -> 1377 bytes
4 files changed, 8 insertions, 5 deletions
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test b/llvm/test/DebugInfo/Inputs/split-dwarf-test
index a4411129a9b..4d6aa0cd98a 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
new file mode 100755
index 00000000000..6a340aa47e6
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test-nogmlt
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.cc b/llvm/test/DebugInfo/Inputs/split-dwarf-test.cc
index 5ed56f94b36..b41423dd815 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test.cc
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.cc
@@ -1,13 +1,16 @@
-int foo(int a) {
- return a + 1;
+void f1() {
}
-int main(int argc, char *argv[]) {
- return foo(argc);
+inline __attribute__((always_inline)) void f2() {
+ f1();
+}
+
+int main() {
+ f2();
}
// Build instructions:
-// 1) clang++ -### -O2 -gsplit-dwarf.cc split-dwarf-test.cc -o split-dwarf-test
+// 1) clang++ -### -gsplit-dwarf split-dwarf-test.cc -o split-dwarf-test
// 2) Replace the value "-fdebug-compilation-dir" flag to "Output"
// (this is the temp directory used by lit).
// 3) Manually run clang-cc1, objcopy and ld invocations.
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
index 74183a4b622..588374d7d21 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