summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-11-17 01:44:25 +0000
committerFangrui Song <maskray@google.com>2018-11-17 01:44:25 +0000
commit75709329774ba0596bcd99abe4037dacfe28a053 (patch)
treeec75e41ad7e05d81e381911b019f605d019ff5fe /llvm/lib/DebugInfo
parenta900471d58fda9c5c68b0177b912a3ea174b5d18 (diff)
downloadbcm5719-llvm-75709329774ba0596bcd99abe4037dacfe28a053.tar.gz
bcm5719-llvm-75709329774ba0596bcd99abe4037dacfe28a053.zip
Use llvm::copy. NFC
llvm-svn: 347126
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index 6bf711cfdfe..f8b5ff6ec8f 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
@@ -124,7 +124,7 @@ DWARFDebugLoc::parseOneLocationList(DWARFDataExtractor Data, unsigned *Offset) {
StringRef str = Data.getData().substr(*Offset, Bytes);
*Offset += Bytes;
E.Loc.reserve(str.size());
- std::copy(str.begin(), str.end(), std::back_inserter(E.Loc));
+ llvm::copy(str, std::back_inserter(E.Loc));
LL.Entries.push_back(std::move(E));
}
}
@@ -189,7 +189,7 @@ DWARFDebugLoclists::parseOneLocationList(DataExtractor Data, unsigned *Offset,
StringRef str = Data.getData().substr(*Offset, Bytes);
*Offset += Bytes;
E.Loc.resize(str.size());
- std::copy(str.begin(), str.end(), E.Loc.begin());
+ llvm::copy(str, E.Loc.begin());
}
LL.Entries.push_back(std::move(E));
OpenPOWER on IntegriCloud