Skip to content

Commit 85472fa

Browse files
committed
Update minor bug in LLVM loader and remove unnecessary comments.
1 parent 10eda75 commit 85472fa

File tree

1 file changed

+12
-30
lines changed

1 file changed

+12
-30
lines changed

source/loaders/llvm_loader/source/llvm_loader_impl.cpp

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,6 @@
6565
#pragma GCC diagnostic pop
6666
#endif
6767

68-
// using namespace llvm;
69-
// using namespace std;
70-
71-
// using llvm::ArrayRef;
72-
// using llvm::EngineBuilder;
73-
// using llvm::ExecutionEngine;
74-
// using llvm::Function;
75-
// using llvm::GenericValue;
76-
// using llvm::LLVMContext;
77-
// using llvm::Module;
78-
// using llvm::parseIRFile;
79-
// using llvm::SMDiagnostic;
80-
// using llvm::StringRef;
81-
// using std::cout;
82-
// using std::endl;
83-
// using std::unique_ptr;
84-
8568
typedef struct loader_impl_llvm_function_type
8669
{
8770
// TODO: The reference to LLVM function must be stored here
@@ -197,19 +180,18 @@ int llvm_loader_impl_register_types(loader_impl impl)
197180
type_id id;
198181
const char *name;
199182
} type_id_name_pair[] = {
200-
201-
{ TYPE_SHORT, "i16" }, //D
202-
{ TYPE_INT, "i32" }, // D
203-
{ TYPE_LONG, "i64" }, // D
204-
{ TYPE_FLOAT, "float" }, // D
205-
{ TYPE_DOUBLE, "double" }, // D
206-
{ TYPE_BOOL, "i1" }, // D
207-
{ TYPE_CHAR, "i8" }, // D
208-
{ TYPE_STRING, "i8**" }, // D
209-
210-
{ TYPE_BUFFER, "Buffer" }, // Left
211-
{ TYPE_PTR, "Ptr" } // Left
212-
// TODO: Implement the rest of the types (Buffer and pointer remaining)
183+
{ TYPE_BOOL, "i1" },
184+
{ TYPE_CHAR, "i8" },
185+
{ TYPE_SHORT, "i16" },
186+
{ TYPE_INT, "i32" },
187+
{ TYPE_LONG, "i64" },
188+
{ TYPE_FLOAT, "float" },
189+
{ TYPE_DOUBLE, "double" },
190+
{ TYPE_STRING, "i8*" },
191+
192+
// TODO: Implement the rest of the types (Buffer and pointer remaining)
193+
{ TYPE_BUFFER, "Buffer" }, // TODO
194+
{ TYPE_PTR, "Ptr" } // TODO
213195

214196
};
215197

0 commit comments

Comments
 (0)