Prepare for CodeGen (and use clang because it rocks!)
This commit is contained in:
@@ -15,7 +15,7 @@ INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR})
|
|||||||
|
|
||||||
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/inc)
|
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/inc)
|
||||||
|
|
||||||
ADD_DEFINITIONS("-std=c++0x")
|
SET(CMAKE_CXX_FLAGS "-std=c++11")
|
||||||
|
|
||||||
ADD_EXECUTABLE (lemon grammar/lemon.c)
|
ADD_EXECUTABLE (lemon grammar/lemon.c)
|
||||||
ADD_EXECUTABLE (makeheaders grammar/makeheaders.c)
|
ADD_EXECUTABLE (makeheaders grammar/makeheaders.c)
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
#define CODEGENVISITOR_H
|
#define CODEGENVISITOR_H
|
||||||
|
|
||||||
#include "ASTVisitor.h"
|
#include "ASTVisitor.h"
|
||||||
|
#include "llvm/DerivedTypes.h"
|
||||||
|
#include "llvm/IRBuilder.h"
|
||||||
|
#include "llvm/LLVMContext.h"
|
||||||
|
#include "llvm/Module.h"
|
||||||
|
#include "llvm/Analysis/Verifier.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CodeGenVisitor : public ASTVisitor {
|
class CodeGenVisitor : public ASTVisitor {
|
||||||
|
|||||||
Reference in New Issue
Block a user