diff options
author | Tanya Lattner <tonic@nondot.org> | 2003-05-31 20:01:37 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2003-05-31 20:01:37 +0000 |
commit | e2d74c1c81da1ebe1f944f5a332d20ca7deba455 (patch) | |
tree | d7dfcbbe4c487750495d60e3a7dabacf30bb3631 /llvm/lib/Transforms/Utils/CloneTrace.cpp | |
parent | d9460e12f59affbc83a4537330923969ef76c14a (diff) | |
download | bcm5719-llvm-e2d74c1c81da1ebe1f944f5a332d20ca7deba455.tar.gz bcm5719-llvm-e2d74c1c81da1ebe1f944f5a332d20ca7deba455.zip |
Fixed comment width, changed arg to be const, fixed indentation, removed unnecessary includes.
llvm-svn: 6476
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneTrace.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneTrace.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneTrace.cpp b/llvm/lib/Transforms/Utils/CloneTrace.cpp index e8578c512d2..2890b9e2b16 100644 --- a/llvm/lib/Transforms/Utils/CloneTrace.cpp +++ b/llvm/lib/Transforms/Utils/CloneTrace.cpp @@ -1,22 +1,20 @@ -//===- CloneTrace.cpp - Clone a trace ---------===// +//===- CloneTrace.cpp - Clone a trace -------------------------------------===// // // This file implements the CloneTrace interface, which is used // when writing runtime optimizations. It takes a vector of basic blocks -// removes internal phi nodes, clones the basic blocks, and returns the new -// vector of basic blocks. +// clones the basic blocks, removes internal phi nodes, adds it to the +// same function as the original (although there is no jump to it) and +// returns the new vector of basic blocks. // //===----------------------------------------------------------------------===// -#include "llvm/Instruction.h" -#include "llvm/BasicBlock.h" +#include "llvm/Transforms/Utils/Cloning.h" #include "llvm/iPHINode.h" #include "llvm/Function.h" -#include "llvm/Transforms/Utils/Cloning.h" -#include <map> //Clones the trace (a vector of basic blocks) -std::vector<BasicBlock *> CloneTrace(std::vector<BasicBlock*> &origTrace) { +std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace) { std::vector<BasicBlock *> clonedTrace; std::map<const Value*, Value*> ValueMap; |