[all-commits] [llvm/llvm-project] b2b7cf: IR: Clarify ownership of ConstantDataSequentials, NFC

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Mon Oct 26 15:47:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2b7cf39d596b1528cd64015575b3f5d1461c011
      https://github.com/llvm/llvm-project/commit/b2b7cf39d596b1528cd64015575b3f5d1461c011
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

  Changed paths:
    M llvm/include/llvm/IR/Constants.h
    M llvm/lib/IR/Constants.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/LLVMContextImpl.h

  Log Message:
  -----------
  IR: Clarify ownership of ConstantDataSequentials, NFC

Change `ConstantDataSequential::Next` to a
`unique_ptr<ConstantDataSequential>` and update `CDSConstants` to a
`StringMap<unique_ptr<ConstantDataSequential>>`, making the ownership
more obvious.

Differential Revision: https://reviews.llvm.org/D90083




More information about the All-commits mailing list