diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-31 14:14:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-31 14:14:31 -0700 |
commit | 935fd853f1cef7f89f0633f20eeed43c11899ae6 (patch) | |
tree | 3da82eeaf45fbce5f3fde8f52eb8ef071e3afa39 /src/relooper/Relooper.h | |
parent | 2fcfacdfadc44d6f5e6887e75b3601314322cd68 (diff) |
remove unneeded Branch info on incoming branches in relooper1.4.4
Diffstat (limited to 'src/relooper/Relooper.h')
-rw-r--r-- | src/relooper/Relooper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/relooper/Relooper.h b/src/relooper/Relooper.h index eac03738..5eabe827 100644 --- a/src/relooper/Relooper.h +++ b/src/relooper/Relooper.h @@ -41,6 +41,7 @@ struct Branch { void Render(Block *Target, bool SetLabel); }; +typedef std::set<Block*> BlockSet; typedef std::map<Block*, Branch*> BlockBranchMap; // Represents a basic block of code - some instructions that end with a @@ -52,9 +53,9 @@ struct Block { // processed branches. // Blocks own the Branch objects they use, and destroy them when done. BlockBranchMap BranchesOut; - BlockBranchMap BranchesIn; // TODO: make this just a list of Incoming, without branch info - should be just on BranchesOut + BlockSet BranchesIn; BlockBranchMap ProcessedBranchesOut; - BlockBranchMap ProcessedBranchesIn; + BlockSet ProcessedBranchesIn; Shape *Parent; // The shape we are directly inside int Id; // A unique identifier const char *Code; // The string representation of the code in this block. Owning pointer (we copy the input) @@ -205,7 +206,6 @@ struct Relooper { static void SetAsmJSMode(int On); }; -typedef std::set<Block*> BlockSet; typedef std::map<Block*, BlockSet> BlockBlockSetMap; #if DEBUG |