mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed porting error
This commit is contained in:
parent
13b8a46e90
commit
29974e3c07
@ -604,9 +604,7 @@ struct LLVM {
|
|||||||
FunctionType::get(builder_.getInt32Ty(),
|
FunctionType::get(builder_.getInt32Ty(),
|
||||||
PointerType::get(builder_.getInt8Ty(), 0), true));
|
PointerType::get(builder_.getInt8Ty(), 0), true));
|
||||||
|
|
||||||
// auto outC = module_->getOrInsertFunction(
|
auto funccallee = module_->getOrInsertFunction("out", builder_.getVoidTy(), builder_.getInt32Ty());
|
||||||
// "out", builder_.getVoidTy(), builder_.getInt32Ty());
|
|
||||||
auto funccallee = module_->getOrInsertFunction("out", builder_.getInt32Ty());
|
|
||||||
auto outC = funccallee.getCallee();
|
auto outC = funccallee.getCallee();
|
||||||
auto outF = cast<Function>(outC);
|
auto outF = cast<Function>(outC);
|
||||||
|
|
||||||
@ -625,7 +623,6 @@ struct LLVM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void compile_program(const shared_ptr<AstPL0> ast) {
|
void compile_program(const shared_ptr<AstPL0> ast) {
|
||||||
// auto c = module_->getOrInsertFunction("main", builder_.getVoidTy());
|
|
||||||
auto funccallee = module_->getOrInsertFunction("main", builder_.getVoidTy());
|
auto funccallee = module_->getOrInsertFunction("main", builder_.getVoidTy());
|
||||||
auto c = funccallee.getCallee();
|
auto c = funccallee.getCallee();
|
||||||
auto fn = cast<Function>(c);
|
auto fn = cast<Function>(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user