Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 3aef776

Browse files
committed
Don't indent inside a namespace. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239760 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 132c354 commit 3aef776

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -707,30 +707,28 @@ static void upgradeDLLImportExportLinkage(llvm::GlobalValue *GV, unsigned Val) {
707707

708708
namespace llvm {
709709
namespace {
710-
/// \brief A class for maintaining the slot number definition
711-
/// as a placeholder for the actual definition for forward constants defs.
712-
class ConstantPlaceHolder : public ConstantExpr {
713-
void operator=(const ConstantPlaceHolder &) = delete;
714-
public:
715-
// allocate space for exactly one operand
716-
void *operator new(size_t s) {
717-
return User::operator new(s, 1);
718-
}
719-
explicit ConstantPlaceHolder(Type *Ty, LLVMContext& Context)
720-
: ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) {
721-
Op<0>() = UndefValue::get(Type::getInt32Ty(Context));
722-
}
710+
/// \brief A class for maintaining the slot number definition
711+
/// as a placeholder for the actual definition for forward constants defs.
712+
class ConstantPlaceHolder : public ConstantExpr {
713+
void operator=(const ConstantPlaceHolder &) = delete;
723714

724-
/// \brief Methods to support type inquiry through isa, cast, and dyn_cast.
725-
static bool classof(const Value *V) {
726-
return isa<ConstantExpr>(V) &&
727-
cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1;
728-
}
715+
public:
716+
// allocate space for exactly one operand
717+
void *operator new(size_t s) { return User::operator new(s, 1); }
718+
explicit ConstantPlaceHolder(Type *Ty, LLVMContext &Context)
719+
: ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) {
720+
Op<0>() = UndefValue::get(Type::getInt32Ty(Context));
721+
}
729722

723+
/// \brief Methods to support type inquiry through isa, cast, and dyn_cast.
724+
static bool classof(const Value *V) {
725+
return isa<ConstantExpr>(V) &&
726+
cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1;
727+
}
730728

731-
/// Provide fast operand accessors
732-
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
733-
};
729+
/// Provide fast operand accessors
730+
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
731+
};
734732
}
735733

736734
// FIXME: can we inherit this from ConstantExpr?

0 commit comments

Comments
 (0)