Skip to content

Commit

Permalink
[IRBuilder] Reformat two functions (NFC)
Browse files Browse the repository at this point in the history
These were using 1-space indentation.
  • Loading branch information
nikic committed Feb 2, 2022
1 parent 93e7f35 commit b82a3a8
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions llvm/lib/IR/IRBuilder.cpp
Expand Up @@ -785,31 +785,26 @@ InvokeInst *IRBuilderBase::CreateGCStatepointInvoke(
}

CallInst *IRBuilderBase::CreateGCResult(Instruction *Statepoint,
Type *ResultType,
const Twine &Name) {
Intrinsic::ID ID = Intrinsic::experimental_gc_result;
Module *M = BB->getParent()->getParent();
Type *Types[] = {ResultType};
Function *FnGCResult = Intrinsic::getDeclaration(M, ID, Types);
Type *ResultType, const Twine &Name) {
Intrinsic::ID ID = Intrinsic::experimental_gc_result;
Module *M = BB->getParent()->getParent();
Type *Types[] = {ResultType};
Function *FnGCResult = Intrinsic::getDeclaration(M, ID, Types);

Value *Args[] = {Statepoint};
return createCallHelper(FnGCResult, Args, this, Name);
Value *Args[] = {Statepoint};
return createCallHelper(FnGCResult, Args, this, Name);
}

CallInst *IRBuilderBase::CreateGCRelocate(Instruction *Statepoint,
int BaseOffset,
int DerivedOffset,
Type *ResultType,
const Twine &Name) {
Module *M = BB->getParent()->getParent();
Type *Types[] = {ResultType};
Function *FnGCRelocate =
Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate, Types);

Value *Args[] = {Statepoint,
getInt32(BaseOffset),
getInt32(DerivedOffset)};
return createCallHelper(FnGCRelocate, Args, this, Name);
int BaseOffset, int DerivedOffset,
Type *ResultType, const Twine &Name) {
Module *M = BB->getParent()->getParent();
Type *Types[] = {ResultType};
Function *FnGCRelocate =
Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate, Types);

Value *Args[] = {Statepoint, getInt32(BaseOffset), getInt32(DerivedOffset)};
return createCallHelper(FnGCRelocate, Args, this, Name);
}

CallInst *IRBuilderBase::CreateGCGetPointerBase(Value *DerivedPtr,
Expand Down

0 comments on commit b82a3a8

Please sign in to comment.