mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Update package json for new map layout; Correct llvm-api includes for *nix
This commit is contained in:
@@ -210,12 +210,12 @@ marshal_arg :: proc(b: ^strings.Builder, v: any) -> Marshal_Error {
|
|||||||
data := uintptr(entries.data) + uintptr(i*entry_size);
|
data := uintptr(entries.data) + uintptr(i*entry_size);
|
||||||
header := cast(^Map_Entry_Header)data;
|
header := cast(^Map_Entry_Header)data;
|
||||||
|
|
||||||
marshal_arg(b, any{rawptr(&header.key.key.val), info.key.id});
|
key := rawptr(data + entry_type.offsets[2]);
|
||||||
|
value := rawptr(data + entry_type.offsets[3]);
|
||||||
|
|
||||||
|
marshal_arg(b, any{key, info.key.id});
|
||||||
write_string(b, ": ");
|
write_string(b, ": ");
|
||||||
|
marshal_arg(b, any{value, info.value.id});
|
||||||
value := data + entry_type.offsets[2];
|
|
||||||
marshal_arg(b, any{rawptr(value), info.value.id});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write_byte(b, '}');
|
write_byte(b, '}');
|
||||||
|
|||||||
@@ -12522,6 +12522,10 @@ void lb_generate_code(lbGenerator *gen) {
|
|||||||
1, "", 0,
|
1, "", 0,
|
||||||
LLVMDWARFEmissionFull, 0, true,
|
LLVMDWARFEmissionFull, 0, true,
|
||||||
true
|
true
|
||||||
|
#if LLVM_VERSION_MAJOR > 10
|
||||||
|
, "", 0,
|
||||||
|
"", 0
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#if defined(LLVM_BACKEND_SUPPORT)
|
||||||
|
#if defined(GB_SYSTEM_WINDOWS)
|
||||||
#include "llvm-c/Core.h"
|
#include "llvm-c/Core.h"
|
||||||
#include "llvm-c/ExecutionEngine.h"
|
#include "llvm-c/ExecutionEngine.h"
|
||||||
#include "llvm-c/Target.h"
|
#include "llvm-c/Target.h"
|
||||||
@@ -12,6 +14,23 @@
|
|||||||
#include "llvm-c/Transforms/Scalar.h"
|
#include "llvm-c/Transforms/Scalar.h"
|
||||||
#include "llvm-c/Transforms/Utils.h"
|
#include "llvm-c/Transforms/Utils.h"
|
||||||
#include "llvm-c/Transforms/Vectorize.h"
|
#include "llvm-c/Transforms/Vectorize.h"
|
||||||
|
#else
|
||||||
|
#include <llvm-c/Core.h>
|
||||||
|
#include <llvm-c/ExecutionEngine.h>
|
||||||
|
#include <llvm-c/Target.h>
|
||||||
|
#include <llvm-c/Analysis.h>
|
||||||
|
#include <llvm-c/Object.h>
|
||||||
|
#include <llvm-c/BitWriter.h>
|
||||||
|
#include <llvm-c/DebugInfo.h>
|
||||||
|
#include <llvm-c/Transforms/AggressiveInstCombine.h>
|
||||||
|
#include <llvm-c/Transforms/InstCombine.h>
|
||||||
|
#include <llvm-c/Transforms/IPO.h>
|
||||||
|
#include <llvm-c/Transforms/PassManagerBuilder.h>
|
||||||
|
#include <llvm-c/Transforms/Scalar.h>
|
||||||
|
#include <llvm-c/Transforms/Utils.h>
|
||||||
|
#include <llvm-c/Transforms/Vectorize.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
struct lbProcedure;
|
struct lbProcedure;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
gb_global Timings global_timings = {0};
|
gb_global Timings global_timings = {0};
|
||||||
|
|
||||||
#if defined(LLVM_BACKEND_SUPPORT)
|
#if defined(LLVM_BACKEND_SUPPORT)
|
||||||
|
#if defined(GB_SYSTEM_WINDOWS)
|
||||||
#include "llvm-c/Types.h"
|
#include "llvm-c/Types.h"
|
||||||
|
#else
|
||||||
|
#include <llvm-c/Types.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "parser.hpp"
|
#include "parser.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user