projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9c70b
)
profile: Fix link errors in this test on darwin
author
Justin Bogner
<mail@justinbogner.com>
Fri, 29 May 2015 22:41:25 +0000
(22:41 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Fri, 29 May 2015 22:41:25 +0000
(22:41 +0000)
llvm-svn: 238622
compiler-rt/test/profile/Inputs/instrprof-dynamic-a.cpp
patch
|
blob
|
history
compiler-rt/test/profile/Inputs/instrprof-dynamic-b.cpp
patch
|
blob
|
history
compiler-rt/test/profile/Inputs/instrprof-dynamic-header.h
patch
|
blob
|
history
compiler-rt/test/profile/Inputs/instrprof-dynamic-main.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/test/profile/Inputs/instrprof-dynamic-a.cpp
b/compiler-rt/test/profile/Inputs/instrprof-dynamic-a.cpp
index
67de263
..
2ec484a
100644
(file)
--- a/
compiler-rt/test/profile/Inputs/instrprof-dynamic-a.cpp
+++ b/
compiler-rt/test/profile/Inputs/instrprof-dynamic-a.cpp
@@
-1,7
+1,7
@@
#include "instrprof-dynamic-header.h"
void a() {
if (true) {
- bar<void>();
- bar<char>();
+ bar<void>(
1
);
+ bar<char>(
1
);
}
}
diff --git
a/compiler-rt/test/profile/Inputs/instrprof-dynamic-b.cpp
b/compiler-rt/test/profile/Inputs/instrprof-dynamic-b.cpp
index
c8fb75e
..
5c2d9ba
100644
(file)
--- a/
compiler-rt/test/profile/Inputs/instrprof-dynamic-b.cpp
+++ b/
compiler-rt/test/profile/Inputs/instrprof-dynamic-b.cpp
@@
-1,7
+1,7
@@
#include "instrprof-dynamic-header.h"
void b() {
if (true) {
- bar<void>();
- bar<int>();
+ bar<void>(
1
);
+ bar<int>(
1
);
}
}
diff --git
a/compiler-rt/test/profile/Inputs/instrprof-dynamic-header.h
b/compiler-rt/test/profile/Inputs/instrprof-dynamic-header.h
index
4d4a513
..
7a57b13
100644
(file)
--- a/
compiler-rt/test/profile/Inputs/instrprof-dynamic-header.h
+++ b/
compiler-rt/test/profile/Inputs/instrprof-dynamic-header.h
@@
-1,5
+1,4
@@
-extern int X;
-template <class T> void bar() {
+template <class T> void bar(int X) {
if (X) {
X *= 4;
}
diff --git
a/compiler-rt/test/profile/Inputs/instrprof-dynamic-main.cpp
b/compiler-rt/test/profile/Inputs/instrprof-dynamic-main.cpp
index
5ba46ad
..
2cf37c8
100644
(file)
--- a/
compiler-rt/test/profile/Inputs/instrprof-dynamic-main.cpp
+++ b/
compiler-rt/test/profile/Inputs/instrprof-dynamic-main.cpp
@@
-1,10
+1,8
@@
#include "instrprof-dynamic-header.h"
-int X = 0;
void foo(int K) { if (K) {} }
int main(int argc, char *argv[]) {
foo(5);
- X++;
- bar<void>();
+ bar<void>(1);
a();
b();
return 0;