mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Factor param/arg ref logic to a class. (#3728)
Just segmenting out a chunk of logic while I'm thinking about function parameters.
This commit is contained in:
@@ -79,8 +79,10 @@ class InstBlockStack {
|
||||
// Prints the stack for a stack dump.
|
||||
auto PrintForStackDump(llvm::raw_ostream& output) const -> void;
|
||||
|
||||
auto empty() const -> bool { return size() == 0; }
|
||||
auto size() const -> int { return size_; }
|
||||
// Runs verification that the processing cleanly finished.
|
||||
auto VerifyOnFinish() const -> void { CARBON_CHECK(empty()) << size_; }
|
||||
|
||||
auto empty() const -> bool { return size_ == 0; }
|
||||
|
||||
private:
|
||||
struct StackEntry {
|
||||
|
||||
Reference in New Issue
Block a user