mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1515,14 +1515,14 @@ ArrayRef<char>
|
||||
MachOObjectFile::getSectionRawName(DataRefImpl Sec) const {
|
||||
const section_base *Base =
|
||||
reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
|
||||
return ArrayRef<char>(Base->sectname);
|
||||
return makeArrayRef(Base->sectname);
|
||||
}
|
||||
|
||||
ArrayRef<char>
|
||||
MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const {
|
||||
const section_base *Base =
|
||||
reinterpret_cast<const section_base *>(Sections[Sec.d.a]);
|
||||
return ArrayRef<char>(Base->segname);
|
||||
return makeArrayRef(Base->segname);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user