projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for llvm API change.
[oota-llvm.git]
/
examples
/
Kaleidoscope
/
Chapter8
/
toy.cpp
diff --git
a/examples/Kaleidoscope/Chapter8/toy.cpp
b/examples/Kaleidoscope/Chapter8/toy.cpp
index d58dadf08bb6e7e5809a8900920c0ac2296bc668..7eaf16caa075cebda98b01bba86b03c241c0ec3d 100644
(file)
--- a/
examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/
examples/Kaleidoscope/Chapter8/toy.cpp
@@
-848,8
+848,7
@@
static DISubroutineType *CreateFunctionType(unsigned NumArgs, DIFile *Unit) {
for (unsigned i = 0, e = NumArgs; i != e; ++i)
EltTys.push_back(DblTy);
for (unsigned i = 0, e = NumArgs; i != e; ++i)
EltTys.push_back(DblTy);
- return DBuilder->createSubroutineType(Unit,
- DBuilder->getOrCreateTypeArray(EltTys));
+ return DBuilder->createSubroutineType(DBuilder->getOrCreateTypeArray(EltTys));
}
//===----------------------------------------------------------------------===//
}
//===----------------------------------------------------------------------===//