Skip to content

Commit edeb618

Browse files
committed
Merge pull request #37 from elite-lang/dev
Dev
2 parents 2805e01 + d10169d commit edeb618

File tree

8 files changed

+21
-5
lines changed

8 files changed

+21
-5
lines changed

EliteTest/full_test/1/test.elite

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
void hello(int k, int g) {
2+
void hello() {
33
printf("hello world");
44
}
55

66
int main() {
7-
hello(1,2);
7+
hello();
88
return 0;
99
}
1010

ExIconv/include/DebugMsg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class DebugMsg
5353
static std::ostream& red_dbg();
5454
static void red_close();
5555

56+
static std::ostream& red_llvm_bc();
57+
static void red_llvm_bc_close();
5658

5759
static std::ostream& lex_graphviz();
5860
static void lex_graphviz_close();

ExIconv/src/DebugMsg.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class DebugMsg_Private
2424

2525
fstream lex_graphviz_fs;
2626
fstream parser_graphviz_fs;
27+
fstream llvm_bc_fs;
2728
};
2829

2930
void DebugMsg::setDebugFilePath(const char* path) {
@@ -110,6 +111,19 @@ void DebugMsg::red_close() {
110111
fs.close();
111112
}
112113

114+
std::ostream& DebugMsg::red_llvm_bc() {
115+
auto& fs = getInstance()->llvm_bc_fs;
116+
if(!fs.is_open()) {
117+
fs.open(getInstance()->dbg_file_path+"/llvm.bc", std::ios::out);
118+
return fs;
119+
}
120+
return fs;
121+
}
122+
123+
void DebugMsg::red_llvm_bc_close() {
124+
auto& fs = getInstance()->llvm_bc_fs;
125+
fs.close();
126+
}
113127

114128

115129
std::ostream& DebugMsg::lex_graphviz() {

src/elite-config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#define ELITE_VERSION_MAJOR "0"
1010
#define ELITE_VERSION_MINOR "8"
11-
#define ELITE_VERSION_RELEASE "4"
11+
#define ELITE_VERSION_RELEASE "5"
1212
#define ELITE_VERSION_NUM 8
1313

1414
#define ELITE_VERSION "Elite " ELITE_VERSION_MAJOR "." ELITE_VERSION_MINOR

0 commit comments

Comments
 (0)