Skip to content

Commit

Permalink
Add LLVM19
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Sep 28, 2024
1 parent 4e5d682 commit 4151480
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 92 deletions.
6 changes: 0 additions & 6 deletions include/clasp/clbind/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,6 @@ template <class T, class Base = no_bases, class WrappedType = reg::null_type> st

return *this;
}

public:
template <class Getter, class Setter>
class_& def_property(const std::string& prefix, Getter g, Setter s, const char* docstring = "") {
this->property_impl(prefix, g, s);
}
};
} // namespace clbind

Expand Down
8 changes: 4 additions & 4 deletions include/clasp/clbind/policies.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ template <class... PTypes> struct policies {
bool m_auto_export = true;
bool m_setf = false;
void describe() {
printf("%s:%d Descibing Policy\n", __FILE__, __LINE__);
fmt::print("{}:{} Descibing Policy\n", __FILE__, __LINE__);
if (this->m_lambda_list != "") {
printf("lambda_list = %s\n", this->m_lambda_list.c_str());
fmt::print("lambda_list = {}\n", this->m_lambda_list);
} else {
printf("keyword_list = %s\n", this->keyword_list().c_str());
fmt::print("keyword_list = {}\n", this->keywordList());
}
printf("Docstring = %s\n", this->m_doc_string.c_str());
fmt::print("Docstring = {}\n", this->m_doc_string.c_str());
}
std::string keywordList() const {
if (this->m_keywords.size() == 0) {
Expand Down
2 changes: 0 additions & 2 deletions include/clasp/gctools/exposeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class DerivableFrontendActionFactory;
#undef DECLARE_FORWARDS
#endif
#endif
namespace gctools {

////////////////////////////////////////////////////////////
//
Expand All @@ -108,7 +107,6 @@ namespace gctools {
#undef GC_STAMP_SELECTORS
#endif
#endif
}; // namespace gctools

extern "C" {
bool valid_stamp(gctools::stamp_t kind);
Expand Down
3 changes: 0 additions & 3 deletions include/clasp/gctools/gc_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ class DerivableFrontendActionFactory;
#endif
#endif

namespace gctools {

////////////////////////////////////////////////////////////
//
// Define the stamps
Expand All @@ -112,7 +110,6 @@ namespace gctools {
#undef GC_STAMP_SELECTORS
#endif
#endif
}; // namespace gctools

extern "C" {
bool valid_stamp(gctools::stamp_t kind);
Expand Down
2 changes: 1 addition & 1 deletion include/clasp/gctools/gcalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ template <class OT> class GC {
size_t capacity = length + 1;
size_t size = sizeof_container_with_header<OT>(capacity);
if (static_container_p)
return GCObjectAllocator<OT>::template static_allocate_kind(
return GCObjectAllocator<OT>::static_allocate_kind(
Header_s::BadgeStampWtagMtag::make_StampWtagMtag(OT::static_ValueStampWtagMtag), size, length,
std::forward<ARGS>(args)...);
else
Expand Down
6 changes: 3 additions & 3 deletions include/clasp/gctools/memoryManagement.h
Original file line number Diff line number Diff line change
Expand Up @@ -1030,15 +1030,15 @@ extern size_t global_sizeof_fwd;
inline size_t Align(size_t size) { return ((AlignUp(size) >= global_sizeof_fwd) ? AlignUp(size) : global_sizeof_fwd); };

// Manually define these for the sake of As<Fixnum_sp> etc.
template <> struct gctools::GCStamp<core::Fixnum_I> {
template <> struct GCStamp<core::Fixnum_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__Fixnum_dummy_O;
};
template <> struct gctools::GCStamp<core::SingleFloat_I> {
template <> struct GCStamp<core::SingleFloat_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__SingleFloat_dummy_O;
};
template <> struct gctools::GCStamp<core::Character_I> {
template <> struct GCStamp<core::Character_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__Character_dummy_O;
};
Expand Down
Loading

0 comments on commit 4151480

Please sign in to comment.