Commit c1d2927c authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

Run clang-format on lib/CodeGen/CGCall.h and fix indentation

parent 29d5e275
Loading
Loading
Loading
Loading
+304 −308
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ class AttributeList;
class Function;
class Type;
class Value;
}
} // namespace llvm

namespace clang {
class ASTContext;
@@ -135,8 +135,7 @@ public:
    return CGCallee(abstractInfo, functionPtr);
  }

    static CGCallee
    forDirect(llvm::FunctionCallee functionPtr,
  static CGCallee forDirect(llvm::FunctionCallee functionPtr,
                            const CGCalleeInfo &abstractInfo = CGCalleeInfo()) {
    return CGCallee(abstractInfo, functionPtr.getCallee());
  }
@@ -259,8 +258,7 @@ public:

/// CallArgList - Type for representing both the value and type of
/// arguments in a call.
  class CallArgList :
    public SmallVector<CallArg, 8> {
class CallArgList : public SmallVector<CallArg, 8> {
public:
  CallArgList() : StackBase(nullptr) {}

@@ -295,8 +293,8 @@ public:
  /// be used to emit a call.
  void addFrom(const CallArgList &other) {
    insert(end(), other.begin(), other.end());
      Writebacks.insert(Writebacks.end(),
                        other.Writebacks.begin(), other.Writebacks.end());
    Writebacks.insert(Writebacks.end(), other.Writebacks.begin(),
                      other.Writebacks.end());
    CleanupsToDeactivate.insert(CleanupsToDeactivate.end(),
                                other.CleanupsToDeactivate.begin(),
                                other.CleanupsToDeactivate.end());
@@ -305,8 +303,7 @@ public:
      StackBase = other.StackBase;
  }

    void addWriteback(LValue srcLV, Address temporary,
                      llvm::Value *toUse) {
  void addWriteback(LValue srcLV, Address temporary, llvm::Value *toUse) {
    Writeback writeback = {srcLV, temporary, toUse};
    Writebacks.push_back(writeback);
  }
@@ -355,8 +352,7 @@ public:
/// FunctionArgList - Type for representing both the decl and type
/// of parameters to a function. The decl must be either a
/// ParmVarDecl or ImplicitParamDecl.
  class FunctionArgList : public SmallVector<const VarDecl*, 16> {
  };
class FunctionArgList : public SmallVector<const VarDecl *, 16> {};

/// ReturnValueSlot - Contains the address where the return value of a
/// function can be stored, and whether the address is volatile or not.