Skip to content

Commit

Permalink
Updated to llvm 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Apr 25, 2017
1 parent d9ee52d commit a5d24c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "target.h"
#include "yyparser.h"
#include <llvm/IR/Verifier.h> //for verifying basic structure of functions
#include <llvm/Bitcode/ReaderWriter.h> //for r/w when outputting bitcode
//#include <llvm/Bitcode/ReaderWriter.h> //for r/w when outputting bitcode
#include <llvm/Support/FileSystem.h> //for r/w when outputting bitcode
#include <llvm/Support/raw_ostream.h> //for ostream when outputting bitcode
#include "llvm/Transforms/Scalar.h" //for most passes
Expand Down Expand Up @@ -73,10 +73,10 @@ TypedValue* IntLitNode::compile(Compiler *c){

const fltSemantics& typeTagToFltSemantics(TypeTag tokTy){
switch(tokTy){
case TT_F16: return APFloat::IEEEhalf;
case TT_F32: return APFloat::IEEEsingle;
case TT_F64: return APFloat::IEEEdouble;
default: return APFloat::IEEEdouble;
case TT_F16: return APFloat::IEEEhalf();
case TT_F32: return APFloat::IEEEsingle();
case TT_F64: return APFloat::IEEEdouble();
default: return APFloat::IEEEdouble();
}
}

Expand Down

0 comments on commit a5d24c0

Please sign in to comment.