summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/profile/Inputs')
-rw-r--r--compiler-rt/test/profile/Inputs/instrprof-comdat-1.cpp17
-rw-r--r--compiler-rt/test/profile/Inputs/instrprof-comdat-2.cpp12
-rw-r--r--compiler-rt/test/profile/Inputs/instrprof-comdat.h23
3 files changed, 0 insertions, 52 deletions
diff --git a/compiler-rt/test/profile/Inputs/instrprof-comdat-1.cpp b/compiler-rt/test/profile/Inputs/instrprof-comdat-1.cpp
deleted file mode 100644
index bd574ec3fb8..00000000000
--- a/compiler-rt/test/profile/Inputs/instrprof-comdat-1.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "instrprof-comdat.h"
-int g;
-extern int bar(int);
-
-int main() {
-
- FOO<int> Foo;
-
- int Res = Foo.DoIt(10);
-
- if (Res > 10)
- g = bar(10);
- else
- g = bar(1) + bar(2);
- return 0;
-}
-
diff --git a/compiler-rt/test/profile/Inputs/instrprof-comdat-2.cpp b/compiler-rt/test/profile/Inputs/instrprof-comdat-2.cpp
deleted file mode 100644
index ce68d54e8c5..00000000000
--- a/compiler-rt/test/profile/Inputs/instrprof-comdat-2.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "instrprof-comdat.h"
-
-int bar(int I) {
-
- FOO<long> Foo;
- FOO<int> Foo2;
-
- if (I > 5)
- return (int)Foo.DoIt(10);
- else
- return (int)Foo2.DoIt(I);
-}
diff --git a/compiler-rt/test/profile/Inputs/instrprof-comdat.h b/compiler-rt/test/profile/Inputs/instrprof-comdat.h
deleted file mode 100644
index db1a5ba63e5..00000000000
--- a/compiler-rt/test/profile/Inputs/instrprof-comdat.h
+++ /dev/null
@@ -1,23 +0,0 @@
-// Template instantiations are placed into comdat sections. Check that
-// coverage data from different instantiations are mapped back to the correct
-// source regions.
-
-template <class T> class FOO {
-public:
- FOO() : t(0) {}
-
- T DoIt(T ti);
-
-private:
- T t;
-};
-
-template <class T> T FOO<T>::DoIt(T ti) { // HEADER: 2| [[@LINE]]|template
- for (T I = 0; I < ti; I++) { // HEADER: 22| [[@LINE]]| for (T
- t += I; // HEADER: 20| [[@LINE]]| t += I;
- if (I > ti / 2) // HEADER: 20| [[@LINE]]| if (I > ti
- t -= 1; // HEADER: 8| [[@LINE]]| t -= 1;
- } // HEADER: 10| [[@LINE]]| }
- // HEADER: 1| [[@LINE]]|
- return t; // HEADER: 1| [[@LINE]]| return t;
-}
OpenPOWER on IntegriCloud