[XRay] Help gcc disambiguate names
Follow-up to D51210. llvm-svn: 341042
This commit is contained in:
parent
5c0f66b1fe
commit
17045975da
|
@ -64,12 +64,13 @@ template <size_t Index> struct IndexedMemcpy {
|
|||
static void Copy(char *, Tuple &&) {}
|
||||
};
|
||||
|
||||
template <uint8_t Kind, class... Data>
|
||||
Error writeMetadata(raw_ostream &OS, Data&&... Ds) {
|
||||
template <uint8_t Kind, class... Values>
|
||||
Error writeMetadata(raw_ostream &OS, Values&&... Ds) {
|
||||
MetadataBlob B;
|
||||
B.Type = 1;
|
||||
B.RecordKind = Kind;
|
||||
auto T = std::make_tuple(std::forward<Data>(std::move(Ds))...);
|
||||
std::memset(B.Data, 0, 15);
|
||||
auto T = std::make_tuple(std::forward<Values>(std::move(Ds))...);
|
||||
IndexedMemcpy<0>::Copy(B.Data, T);
|
||||
OS.write(reinterpret_cast<const char *>(&B), sizeof(MetadataBlob));
|
||||
return Error::success();
|
||||
|
|
Loading…
Reference in New Issue