X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FIR%2FGlobalObject.h;h=4b671da193d40c1cb06249528661ecb50d047c43;hp=f0552410b61d972b0a2e6f0175bbde93f1e96b6a;hb=7b1f1048e86ebf78bb2f04232261813077b541ae;hpb=4294df4cebee381a74865a648fb4da7a10eaf828;ds=sidebyside diff --git a/include/llvm/IR/GlobalObject.h b/include/llvm/IR/GlobalObject.h index f0552410b61..4b671da193d 100644 --- a/include/llvm/IR/GlobalObject.h +++ b/include/llvm/IR/GlobalObject.h @@ -28,8 +28,13 @@ class GlobalObject : public GlobalValue { protected: GlobalObject(PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, - LinkageTypes Linkage, const Twine &Name) - : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name), ObjComdat(nullptr) { + LinkageTypes Linkage, const Twine &Name) = delete; + GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, + LinkageTypes Linkage, const Twine &Name, + unsigned AddressSpace = 0) + : GlobalValue(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps, + Linkage, Name), + ObjComdat(nullptr) { setGlobalValueSubClassData(0); }