projects
/
kaleidoscope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP
[kaleidoscope.git]
/
Kaleidoscope
/
ast.cpp
diff --git
a/Kaleidoscope/ast.cpp
b/Kaleidoscope/ast.cpp
index 19f510165e4c816377a865f893370f2a82bd0e3f..2c367e8125fa24bed8386696ad62a18860a6c87b 100644
(file)
--- a/
Kaleidoscope/ast.cpp
+++ b/
Kaleidoscope/ast.cpp
@@
-1,6
+1,8
@@
#include "ast.hpp"
#include "ast.hpp"
+#include <string>
+#include <iostream>
-std::unique_ptr<ExprAST> LogError(
const char *S
tr) {
-
fprintf(stderr, "LogError: %s\n", Str)
;
+std::unique_ptr<ExprAST> LogError(
std::string s
tr) {
+
std::cerr << "LogError: " << str << std::endl
;
return nullptr;
}
return nullptr;
}