WIP
[kaleidoscope.git] / Kaleidoscope / ast.cpp
index 19f510165e4c816377a865f893370f2a82bd0e3f..2c367e8125fa24bed8386696ad62a18860a6c87b 100644 (file)
@@ -1,6 +1,8 @@
 #include "ast.hpp"
+#include <string>
+#include <iostream>
 
-std::unique_ptr<ExprAST> LogError(const char *Str) {
-       fprintf(stderr, "LogError: %s\n", Str);
+std::unique_ptr<ExprAST> LogError(std::string str) {
+       std::cerr << "LogError: " << str << std::endl;
        return nullptr;
 }