diff options
| author | Craig Topper <craig.topper@intel.com> | 2017-07-02 17:08:44 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2017-07-02 17:08:44 +0000 | 
| commit | cbb1e99243fac8b36bdee22328f51c86b22418c0 (patch) | |
| tree | 88024f8de52b479ffb52d850feba393f732c9ed7 | |
| parent | df2657ac2d626fd3128d0c1d8e4fb11d61231312 (diff) | |
| download | bcm5719-llvm-cbb1e99243fac8b36bdee22328f51c86b22418c0.tar.gz bcm5719-llvm-cbb1e99243fac8b36bdee22328f51c86b22418c0.zip | |
[IR] Remove unnecessary operator new from ConstantDataArray and ConstantDataVector. They inherit an identical version from ConstantData. NFC
llvm-svn: 306987
| -rw-r--r-- | llvm/include/llvm/IR/Constants.h | 10 | 
1 files changed, 0 insertions, 10 deletions
| diff --git a/llvm/include/llvm/IR/Constants.h b/llvm/include/llvm/IR/Constants.h index 8b3a90fa065..2e72c41ccee 100644 --- a/llvm/include/llvm/IR/Constants.h +++ b/llvm/include/llvm/IR/Constants.h @@ -680,11 +680,6 @@ class ConstantDataArray final : public ConstantDataSequential {    explicit ConstantDataArray(Type *ty, const char *Data)        : ConstantDataSequential(ty, ConstantDataArrayVal, Data) {} -  /// Allocate space for exactly zero operands. -  void *operator new(size_t s) { -    return User::operator new(s, 0); -  } -  public:    ConstantDataArray(const ConstantDataArray &) = delete; @@ -739,11 +734,6 @@ class ConstantDataVector final : public ConstantDataSequential {    explicit ConstantDataVector(Type *ty, const char *Data)        : ConstantDataSequential(ty, ConstantDataVectorVal, Data) {} -  // allocate space for exactly zero operands. -  void *operator new(size_t s) { -    return User::operator new(s, 0); -  } -  public:    ConstantDataVector(const ConstantDataVector &) = delete; | 

