Commit graph

29 commits

Author SHA1 Message Date
Török Edvin
0a11015bf5 Refactor trace API, so that trace printing happens in clambc.
This will allow clambc to implement breakpoints, and watchpoints.
2009-12-09 17:05:05 +02:00
Török Edvin
284ffd21f2 Add support for null constant. 2009-12-09 15:15:35 +02:00
Török Edvin
124af5e8a5 Trace formatting fixes. 2009-12-09 11:43:17 +02:00
Török Edvin
65c740d7d8 Add support for tracing (if bytecode compiled with support).
TODO: global id 0 is now a null pointer, need to adjust rest of conversion code
accordingly.
2009-12-08 23:02:49 +02:00
Török Edvin
53bd5bb14d read optional debug metadata. 2009-11-30 15:22:20 +02:00
Török Edvin
d2171abf39 Print better error message when wrong function is called. 2009-11-27 15:57:13 +02:00
Török Edvin
6bd858662e Update to new LLVM API. 2009-11-27 13:36:43 +02:00
Török Edvin
1f1a249720 Disable oprofile support for now. 2009-11-27 12:25:46 +02:00
Török Edvin
322a0ea653 Fix bytecode load bugs. Make loading more robust: print error message instead of
crashing.
Able to load and dry-run yc_bytecode.o1.cbc now.
2009-11-26 17:29:59 +02:00
Török Edvin
a45e257772 Fix bugs when loading bytecode. 2009-11-26 17:29:45 +02:00
Török Edvin
646395bb44 Fix distcheck. 2009-10-02 12:52:35 +03:00
Török Edvin
9fac78c72e Update to latest bytecode format. 2009-10-02 10:26:47 +03:00
Török Edvin
80b4b3fb0f Generalize special global handling (__match_counts etc.). 2009-09-30 14:06:10 +03:00
Török Edvin
88815fd801 Sync with compiler. 2009-09-30 13:41:02 +03:00
Török Edvin
d38d6dadef Logical signature hook for bytecode. 2009-09-22 11:04:33 +03:00
Török Edvin
459b13ed89 Initial support for __match_count. 2009-09-21 23:44:32 +03:00
Török Edvin
52dd3a6bda Initial support for loading .cbc files from DB. 2009-09-21 20:10:33 +03:00
Török Edvin
1d1dd80f32 Fix global variable names. 2009-09-11 15:17:48 +03:00
Török Edvin
7189addbde WiP on debug APi. 2009-09-11 15:12:17 +03:00
Török Edvin
ec07792943 Support for constant global with global initializers. 2009-09-10 22:51:11 +03:00
Török Edvin
a1781898ec inputfile support 2009-09-08 22:25:33 +03:00
Török Edvin
4789b8a5a6 Add draft file API, doesn't work yet. 2009-09-04 17:29:13 +03:00
Török Edvin
d0af4afea4 ctx param to APIs 2009-09-04 16:24:52 +03:00
Török Edvin
6fa1a75be8 todo 2009-09-03 12:17:03 +03:00
Török Edvin
e6d1fe78ea Apicall0 suppport for JIT. 2009-09-02 18:53:29 +03:00
Török Edvin
479fa7135c Fix type checking. 2009-09-02 17:44:18 +03:00
Török Edvin
e32caecb83 Add APIcall support to JIT. 2009-09-02 15:32:59 +03:00
Török Edvin
df52b258a6 prevent double init 2009-08-31 17:44:38 +03:00
Török Edvin
2c7d5adc15 If C++ compiler is not available, don't build LLVM.
This is tricky, because autoconf provides no way to do this automatically
(AC_PROG_CXX fails if no C++ compiler).
One could override AC_MSG_ERROR/FAILURE for AC_PROG_CXX, but that causes all
sorts of problems later (like sys/types.h not found).

So instead create yet another configure in libclamav/c++,
but teach autoconf not to fail if the subconfigure fails
(by overriding AC_MSG_ERROR to set a variable instead of exiting).

This seems to work with shared and static builds, "-all-static" builds
don't work yet, will fix that later.
2009-08-31 15:49:41 +03:00
Renamed from libclamav/bytecode2llvm.cpp (Browse further)