mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
Allow constructor parameter to override aggregating args; fix spacing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -49,7 +49,7 @@ namespace {
|
|||||||
const Type *RetTy;
|
const Type *RetTy;
|
||||||
public:
|
public:
|
||||||
CodeExtractor(DominatorSet *ds = 0, bool AggArgs = false)
|
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);
|
Function *ExtractCodeRegion(const std::vector<BasicBlock*> &code);
|
||||||
|
|
||||||
@@ -403,7 +403,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
|
|||||||
|
|
||||||
// Emit the call to the function
|
// Emit the call to the function
|
||||||
CallInst *call = new CallInst(newFunction, params,
|
CallInst *call = new CallInst(newFunction, params,
|
||||||
NumExitBlocks > 1 ? "targetBlock": "");
|
NumExitBlocks > 1 ? "targetBlock" : "");
|
||||||
codeReplacer->getInstList().push_back(call);
|
codeReplacer->getInstList().push_back(call);
|
||||||
|
|
||||||
Function::aiterator OutputArgBegin = newFunction->abegin();
|
Function::aiterator OutputArgBegin = newFunction->abegin();
|
||||||
|
Reference in New Issue
Block a user