[PATCH] D88141: Update Kaleidoscope tutorial and remove useless header
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 22:41:19 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGba950ad0a510: Update Kaleidoscope: Change headers (authored by sunshaoce <llvm at foxmail.com>).
Changed prior to commit:
https://reviews.llvm.org/D88141?vs=293759&id=294536#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88141/new/
https://reviews.llvm.org/D88141
Files:
llvm/examples/Kaleidoscope/Chapter2/toy.cpp
Index: llvm/examples/Kaleidoscope/Chapter2/toy.cpp
===================================================================
--- llvm/examples/Kaleidoscope/Chapter2/toy.cpp
+++ llvm/examples/Kaleidoscope/Chapter2/toy.cpp
@@ -1,11 +1,10 @@
-#include "llvm/ADT/STLExtras.h"
-#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <memory>
#include <string>
+#include <utility>
#include <vector>
//===----------------------------------------------------------------------===//
@@ -300,8 +299,8 @@
}
// Merge LHS/RHS.
- LHS = std::make_unique<BinaryExprAST>(BinOp, std::move(LHS),
- std::move(RHS));
+ LHS =
+ std::make_unique<BinaryExprAST>(BinOp, std::move(LHS), std::move(RHS));
}
}
@@ -357,7 +356,7 @@
if (auto E = ParseExpression()) {
// Make an anonymous proto.
auto Proto = std::make_unique<PrototypeAST>("__anon_expr",
- std::vector<std::string>());
+ std::vector<std::string>());
return std::make_unique<FunctionAST>(std::move(Proto), std::move(E));
}
return nullptr;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88141.294536.patch
Type: text/x-patch
Size: 1214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200927/310ff853/attachment.bin>
More information about the llvm-commits
mailing list