[llvm-commits] CVS: llvm/lib/Transforms/Utils/CodeExtractor.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Nov 19 18:20:38 PST 2004
Changes in directory llvm/lib/Transforms/Utils:
CodeExtractor.cpp updated: 1.34 -> 1.35
---
Log message:
Allow constructor parameter to override aggregating args; fix spacing
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.34 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.35
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.34 Fri Nov 12 18:06:45 2004
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Fri Nov 19 20:20:27 2004
@@ -49,7 +49,7 @@
const Type *RetTy;
public:
CodeExtractor(DominatorSet *ds = 0, bool AggArgs = false)
- : DS(ds), AggregateArgs(AggregateArgsOpt), NumExitBlocks(~0U) {}
+ : DS(ds), AggregateArgs(AggArgs||AggregateArgsOpt), NumExitBlocks(~0U) {}
Function *ExtractCodeRegion(const std::vector<BasicBlock*> &code);
@@ -403,7 +403,7 @@
// Emit the call to the function
CallInst *call = new CallInst(newFunction, params,
- NumExitBlocks > 1 ? "targetBlock": "");
+ NumExitBlocks > 1 ? "targetBlock" : "");
codeReplacer->getInstList().push_back(call);
Function::aiterator OutputArgBegin = newFunction->abegin();
More information about the llvm-commits
mailing list