Complete Lab2 IR generation and document process
This commit is contained in:
@@ -15,7 +15,7 @@ namespace ir {
|
||||
|
||||
// 当前 BasicBlock 还没有专门的 label type,因此先用 void 作为占位类型。
|
||||
BasicBlock::BasicBlock(std::string name)
|
||||
: Value(Type::GetVoidType(), std::move(name)) {}
|
||||
: Value(Type::GetLabelType(), std::move(name)) {}
|
||||
|
||||
Function* BasicBlock::GetParent() const { return parent_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user