macOS compile fixes and support for slightly older versions of LLVM (to allow Mac users to brew install llvm)

This commit is contained in:
Magnus Norddahl 2016-10-17 00:19:07 +02:00
commit d654301bc2
14 changed files with 55 additions and 669 deletions

View file

@ -1,6 +1,8 @@
#pragma once
#include "ssa_scope.h"
template<typename SSAVariable>
class SSAStack
{
@ -8,7 +10,7 @@ public:
SSAStack()
: v(0)
{
v = SSAScope::alloca(SSAVariable::llvm_type());
v = SSAScope::alloc_stack(SSAVariable::llvm_type());
}
SSAVariable load() const