@@ -707,30 +707,28 @@ static void upgradeDLLImportExportLinkage(llvm::GlobalValue *GV, unsigned Val) {
707
707
708
708
namespace llvm {
709
709
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 ;
723
714
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
+ }
729
722
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
+ }
730
728
731
- // / Provide fast operand accessors
732
- DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value);
733
- };
729
+ // / Provide fast operand accessors
730
+ DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value);
731
+ };
734
732
}
735
733
736
734
// FIXME: can we inherit this from ConstantExpr?
0 commit comments