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:
e9ee517
)
Update Polly for LLVM API change r302571 that removed varargs functions
author
Chandler Carruth
<chandlerc@gmail.com>
Wed, 10 May 2017 02:39:35 +0000
(
02:39
+0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Wed, 10 May 2017 02:39:35 +0000
(
02:39
+0000)
with a nullptr sentinel in favor of nicely typed variadic templates.
llvm-svn: 302618
polly/lib/CodeGen/PerfMonitor.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/CodeGen/PerfMonitor.cpp
b/polly/lib/CodeGen/PerfMonitor.cpp
index
3defeef
..
fe3aba5
100644
(file)
--- a/
polly/lib/CodeGen/PerfMonitor.cpp
+++ b/
polly/lib/CodeGen/PerfMonitor.cpp
@@
-44,11
+44,11
@@
void PerfMonitor::addToGlobalConstructors(Function *Fn) {
}
StructType *ST = StructType::get(Builder.getInt32Ty(), Fn->getType(),
- Builder.getInt8PtrTy()
, nullptr
);
+ Builder.getInt8PtrTy());
V.push_back(ConstantStruct::get(
ST, Builder.getInt32(10), Fn,
- ConstantPointerNull::get(Builder.getInt8PtrTy())
, nullptr
));
+ ConstantPointerNull::get(Builder.getInt8PtrTy())));
ArrayType *Ty = ArrayType::get(ST, V.size());
GV = new GlobalVariable(*M, Ty, true, GlobalValue::AppendingLinkage,