OSDN Git Service

Add a factory method to ConstantDataArray that allows to pass in the data as StringRef
authorAdrian Kuegel <akuegel@google.com>
Tue, 19 Jun 2018 08:12:28 +0000 (08:12 +0000)
committerAdrian Kuegel <akuegel@google.com>
Tue, 19 Jun 2018 08:12:28 +0000 (08:12 +0000)
commit96f21df44877143de055b6ba81373a6acf13d0ad
tree6c31a9f32b4589bff798d047febfea412c34de1a
parent6517111aa98de297e882630ce2de436cd447a1dd
Add a factory method to ConstantDataArray that allows to pass in the data as StringRef

This simplifies the case if we already have access to the raw data that we need to store in a ConstantDataArray.
The new factor method can also be reused for implementing the factory method that gets the data as ArrayRef.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335028 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Constants.h