Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 1 | //===- tools/dsymutil/DebugMap.cpp - Generic debug map representation -----===// |
| 2 | // |
Jonas Devlieghere | 928fea2 | 2018-06-27 16:13:40 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 9 | |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 10 | #include "DebugMap.h" |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 11 | #include "BinaryHolder.h" |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 12 | #include "llvm/ADT/Optional.h" |
| 13 | #include "llvm/ADT/SmallString.h" |
| 14 | #include "llvm/ADT/StringMap.h" |
| 15 | #include "llvm/ADT/StringRef.h" |
| 16 | #include "llvm/ADT/Triple.h" |
Chandler Carruth | 1b27914 | 2015-01-14 11:23:27 +0000 | [diff] [blame] | 17 | #include "llvm/ADT/iterator_range.h" |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 18 | #include "llvm/BinaryFormat/MachO.h" |
| 19 | #include "llvm/Object/ObjectFile.h" |
| 20 | #include "llvm/Support/Chrono.h" |
| 21 | #include "llvm/Support/Error.h" |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 22 | #include "llvm/Support/Format.h" |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 23 | #include "llvm/Support/MemoryBuffer.h" |
| 24 | #include "llvm/Support/Path.h" |
Jonas Devlieghere | 5baab4c | 2018-04-14 21:36:42 +0000 | [diff] [blame] | 25 | #include "llvm/Support/WithColor.h" |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 26 | #include "llvm/Support/YAMLTraits.h" |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 27 | #include "llvm/Support/raw_ostream.h" |
| 28 | #include <algorithm> |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 29 | #include <cinttypes> |
| 30 | #include <cstdint> |
| 31 | #include <memory> |
| 32 | #include <string> |
| 33 | #include <utility> |
| 34 | #include <vector> |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 35 | |
| 36 | namespace llvm { |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 37 | |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 38 | namespace dsymutil { |
| 39 | |
| 40 | using namespace llvm::object; |
| 41 | |
Frederic Riss | 00d14dd | 2015-07-22 23:24:00 +0000 | [diff] [blame] | 42 | DebugMapObject::DebugMapObject(StringRef ObjectFilename, |
Francis Ricci | 6f200df | 2017-10-06 14:49:20 +0000 | [diff] [blame] | 43 | sys::TimePoint<std::chrono::seconds> Timestamp, |
| 44 | uint8_t Type) |
| 45 | : Filename(ObjectFilename), Timestamp(Timestamp), Type(Type) {} |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 46 | |
Frederic Riss | c5413fc | 2016-01-31 04:29:22 +0000 | [diff] [blame] | 47 | bool DebugMapObject::addSymbol(StringRef Name, Optional<uint64_t> ObjectAddress, |
Frederic Riss | e7a3564 | 2015-03-15 01:29:30 +0000 | [diff] [blame] | 48 | uint64_t LinkedAddress, uint32_t Size) { |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 49 | auto InsertResult = Symbols.insert( |
Frederic Riss | e7a3564 | 2015-03-15 01:29:30 +0000 | [diff] [blame] | 50 | std::make_pair(Name, SymbolMapping(ObjectAddress, LinkedAddress, Size))); |
Frederic Riss | e9483b8 | 2015-02-13 23:18:16 +0000 | [diff] [blame] | 51 | |
Frederic Riss | c5413fc | 2016-01-31 04:29:22 +0000 | [diff] [blame] | 52 | if (ObjectAddress && InsertResult.second) |
| 53 | AddressToMapping[*ObjectAddress] = &*InsertResult.first; |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 54 | return InsertResult.second; |
| 55 | } |
| 56 | |
| 57 | void DebugMapObject::print(raw_ostream &OS) const { |
| 58 | OS << getObjectFilename() << ":\n"; |
| 59 | // Sort the symbols in alphabetical order, like llvm-nm (and to get |
| 60 | // deterministic output for testing). |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 61 | using Entry = std::pair<StringRef, SymbolMapping>; |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 62 | std::vector<Entry> Entries; |
| 63 | Entries.reserve(Symbols.getNumItems()); |
| 64 | for (const auto &Sym : make_range(Symbols.begin(), Symbols.end())) |
| 65 | Entries.push_back(std::make_pair(Sym.getKey(), Sym.getValue())); |
Fangrui Song | c466264 | 2018-09-30 22:31:29 +0000 | [diff] [blame] | 66 | llvm::sort(Entries, [](const Entry &LHS, const Entry &RHS) { |
| 67 | return LHS.first < RHS.first; |
| 68 | }); |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 69 | for (const auto &Sym : Entries) { |
Frederic Riss | c5413fc | 2016-01-31 04:29:22 +0000 | [diff] [blame] | 70 | if (Sym.second.ObjectAddress) |
| 71 | OS << format("\t%016" PRIx64, uint64_t(*Sym.second.ObjectAddress)); |
| 72 | else |
| 73 | OS << "\t????????????????"; |
| 74 | OS << format(" => %016" PRIx64 "+0x%x\t%s\n", |
Frederic Riss | 0f58c38 | 2015-06-05 20:27:07 +0000 | [diff] [blame] | 75 | uint64_t(Sym.second.BinaryAddress), uint32_t(Sym.second.Size), |
| 76 | Sym.first.data()); |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 77 | } |
| 78 | OS << '\n'; |
| 79 | } |
| 80 | |
| 81 | #ifndef NDEBUG |
| 82 | void DebugMapObject::dump() const { print(errs()); } |
| 83 | #endif |
| 84 | |
Pavel Labath | 73ce0c0 | 2016-11-09 11:43:52 +0000 | [diff] [blame] | 85 | DebugMapObject & |
| 86 | DebugMap::addDebugMapObject(StringRef ObjectFilePath, |
Francis Ricci | 6f200df | 2017-10-06 14:49:20 +0000 | [diff] [blame] | 87 | sys::TimePoint<std::chrono::seconds> Timestamp, |
| 88 | uint8_t Type) { |
| 89 | Objects.emplace_back(new DebugMapObject(ObjectFilePath, Timestamp, Type)); |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 90 | return *Objects.back(); |
| 91 | } |
| 92 | |
Frederic Riss | e9483b8 | 2015-02-13 23:18:16 +0000 | [diff] [blame] | 93 | const DebugMapObject::DebugMapEntry * |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 94 | DebugMapObject::lookupSymbol(StringRef SymbolName) const { |
| 95 | StringMap<SymbolMapping>::const_iterator Sym = Symbols.find(SymbolName); |
| 96 | if (Sym == Symbols.end()) |
| 97 | return nullptr; |
Frederic Riss | e9483b8 | 2015-02-13 23:18:16 +0000 | [diff] [blame] | 98 | return &*Sym; |
| 99 | } |
| 100 | |
| 101 | const DebugMapObject::DebugMapEntry * |
| 102 | DebugMapObject::lookupObjectAddress(uint64_t Address) const { |
| 103 | auto Mapping = AddressToMapping.find(Address); |
| 104 | if (Mapping == AddressToMapping.end()) |
| 105 | return nullptr; |
| 106 | return Mapping->getSecond(); |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | void DebugMap::print(raw_ostream &OS) const { |
Frederic Riss | 786b471 | 2015-06-01 21:12:45 +0000 | [diff] [blame] | 110 | yaml::Output yout(OS, /* Ctxt = */ nullptr, /* WrapColumn = */ 0); |
Frederic Riss | 0f58c38 | 2015-06-05 20:27:07 +0000 | [diff] [blame] | 111 | yout << const_cast<DebugMap &>(*this); |
Frederic Riss | 31e081e | 2014-12-12 17:31:24 +0000 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | #ifndef NDEBUG |
| 115 | void DebugMap::dump() const { print(errs()); } |
| 116 | #endif |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 117 | |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 118 | namespace { |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 119 | |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 120 | struct YAMLContext { |
| 121 | StringRef PrependPath; |
Frederic Riss | 7bef4c4 | 2015-06-05 21:21:57 +0000 | [diff] [blame] | 122 | Triple BinaryTriple; |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 123 | }; |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 124 | |
| 125 | } // end anonymous namespace |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 126 | |
Frederic Riss | 7a42578 | 2015-08-05 18:27:44 +0000 | [diff] [blame] | 127 | ErrorOr<std::vector<std::unique_ptr<DebugMap>>> |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 128 | DebugMap::parseYAMLDebugMap(StringRef InputFile, StringRef PrependPath, |
| 129 | bool Verbose) { |
| 130 | auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(InputFile); |
| 131 | if (auto Err = ErrOrFile.getError()) |
| 132 | return Err; |
| 133 | |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 134 | YAMLContext Ctxt; |
| 135 | |
| 136 | Ctxt.PrependPath = PrependPath; |
| 137 | |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 138 | std::unique_ptr<DebugMap> Res; |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 139 | yaml::Input yin((*ErrOrFile)->getBuffer(), &Ctxt); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 140 | yin >> Res; |
| 141 | |
| 142 | if (auto EC = yin.error()) |
| 143 | return EC; |
Frederic Riss | 7a42578 | 2015-08-05 18:27:44 +0000 | [diff] [blame] | 144 | std::vector<std::unique_ptr<DebugMap>> Result; |
| 145 | Result.push_back(std::move(Res)); |
| 146 | return std::move(Result); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 147 | } |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 148 | |
| 149 | } // end namespace dsymutil |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 150 | |
| 151 | namespace yaml { |
| 152 | |
| 153 | // Normalize/Denormalize between YAML and a DebugMapObject. |
| 154 | struct MappingTraits<dsymutil::DebugMapObject>::YamlDMO { |
Frederic Riss | 00d14dd | 2015-07-22 23:24:00 +0000 | [diff] [blame] | 155 | YamlDMO(IO &io) { Timestamp = 0; } |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 156 | YamlDMO(IO &io, dsymutil::DebugMapObject &Obj); |
| 157 | dsymutil::DebugMapObject denormalize(IO &IO); |
| 158 | |
| 159 | std::string Filename; |
Pavel Labath | 73ce0c0 | 2016-11-09 11:43:52 +0000 | [diff] [blame] | 160 | int64_t Timestamp; |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 161 | std::vector<dsymutil::DebugMapObject::YAMLSymbolMapping> Entries; |
| 162 | }; |
| 163 | |
| 164 | void MappingTraits<std::pair<std::string, DebugMapObject::SymbolMapping>>:: |
| 165 | mapping(IO &io, std::pair<std::string, DebugMapObject::SymbolMapping> &s) { |
| 166 | io.mapRequired("sym", s.first); |
Frederic Riss | c5413fc | 2016-01-31 04:29:22 +0000 | [diff] [blame] | 167 | io.mapOptional("objAddr", s.second.ObjectAddress); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 168 | io.mapRequired("binAddr", s.second.BinaryAddress); |
| 169 | io.mapOptional("size", s.second.Size); |
| 170 | } |
| 171 | |
| 172 | void MappingTraits<dsymutil::DebugMapObject>::mapping( |
| 173 | IO &io, dsymutil::DebugMapObject &DMO) { |
| 174 | MappingNormalization<YamlDMO, dsymutil::DebugMapObject> Norm(io, DMO); |
| 175 | io.mapRequired("filename", Norm->Filename); |
Frederic Riss | 00d14dd | 2015-07-22 23:24:00 +0000 | [diff] [blame] | 176 | io.mapOptional("timestamp", Norm->Timestamp); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 177 | io.mapRequired("symbols", Norm->Entries); |
| 178 | } |
| 179 | |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 180 | void ScalarTraits<Triple>::output(const Triple &val, void *, raw_ostream &out) { |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 181 | out << val.str(); |
| 182 | } |
| 183 | |
| 184 | StringRef ScalarTraits<Triple>::input(StringRef scalar, void *, Triple &value) { |
| 185 | value = Triple(scalar); |
| 186 | return StringRef(); |
| 187 | } |
| 188 | |
| 189 | size_t |
| 190 | SequenceTraits<std::vector<std::unique_ptr<dsymutil::DebugMapObject>>>::size( |
| 191 | IO &io, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq) { |
| 192 | return seq.size(); |
| 193 | } |
| 194 | |
| 195 | dsymutil::DebugMapObject & |
| 196 | SequenceTraits<std::vector<std::unique_ptr<dsymutil::DebugMapObject>>>::element( |
| 197 | IO &, std::vector<std::unique_ptr<dsymutil::DebugMapObject>> &seq, |
| 198 | size_t index) { |
| 199 | if (index >= seq.size()) { |
| 200 | seq.resize(index + 1); |
| 201 | seq[index].reset(new dsymutil::DebugMapObject); |
| 202 | } |
| 203 | return *seq[index]; |
| 204 | } |
| 205 | |
| 206 | void MappingTraits<dsymutil::DebugMap>::mapping(IO &io, |
| 207 | dsymutil::DebugMap &DM) { |
| 208 | io.mapRequired("triple", DM.BinaryTriple); |
Frederic Riss | 65ce0b1 | 2015-08-26 05:09:59 +0000 | [diff] [blame] | 209 | io.mapOptional("binary-path", DM.BinaryPath); |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 210 | if (void *Ctxt = io.getContext()) |
Frederic Riss | 7bef4c4 | 2015-06-05 21:21:57 +0000 | [diff] [blame] | 211 | reinterpret_cast<YAMLContext *>(Ctxt)->BinaryTriple = DM.BinaryTriple; |
Frederic Riss | fa7f7bd | 2015-07-24 06:41:11 +0000 | [diff] [blame] | 212 | io.mapOptional("objects", DM.Objects); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | void MappingTraits<std::unique_ptr<dsymutil::DebugMap>>::mapping( |
| 216 | IO &io, std::unique_ptr<dsymutil::DebugMap> &DM) { |
| 217 | if (!DM) |
| 218 | DM.reset(new DebugMap()); |
| 219 | io.mapRequired("triple", DM->BinaryTriple); |
Frederic Riss | 65ce0b1 | 2015-08-26 05:09:59 +0000 | [diff] [blame] | 220 | io.mapOptional("binary-path", DM->BinaryPath); |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 221 | if (void *Ctxt = io.getContext()) |
Frederic Riss | 7bef4c4 | 2015-06-05 21:21:57 +0000 | [diff] [blame] | 222 | reinterpret_cast<YAMLContext *>(Ctxt)->BinaryTriple = DM->BinaryTriple; |
Frederic Riss | fa7f7bd | 2015-07-24 06:41:11 +0000 | [diff] [blame] | 223 | io.mapOptional("objects", DM->Objects); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | MappingTraits<dsymutil::DebugMapObject>::YamlDMO::YamlDMO( |
| 227 | IO &io, dsymutil::DebugMapObject &Obj) { |
| 228 | Filename = Obj.Filename; |
Pavel Labath | 73ce0c0 | 2016-11-09 11:43:52 +0000 | [diff] [blame] | 229 | Timestamp = sys::toTimeT(Obj.getTimestamp()); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 230 | Entries.reserve(Obj.Symbols.size()); |
| 231 | for (auto &Entry : Obj.Symbols) |
| 232 | Entries.push_back(std::make_pair(Entry.getKey(), Entry.getValue())); |
| 233 | } |
| 234 | |
| 235 | dsymutil::DebugMapObject |
| 236 | MappingTraits<dsymutil::DebugMapObject>::YamlDMO::denormalize(IO &IO) { |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 237 | BinaryHolder BinHolder(/* Verbose =*/false); |
| 238 | const auto &Ctxt = *reinterpret_cast<YAMLContext *>(IO.getContext()); |
| 239 | SmallString<80> Path(Ctxt.PrependPath); |
| 240 | StringMap<uint64_t> SymbolAddresses; |
| 241 | |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 242 | sys::path::append(Path, Filename); |
Jonas Devlieghere | 9f33bbfe | 2018-06-29 16:51:52 +0000 | [diff] [blame] | 243 | |
| 244 | auto ObjectEntry = BinHolder.getObjectEntry(Path); |
| 245 | if (!ObjectEntry) { |
| 246 | auto Err = ObjectEntry.takeError(); |
| 247 | WithColor::warning() << "Unable to open " << Path << " " |
| 248 | << toString(std::move(Err)) << '\n'; |
| 249 | } else { |
| 250 | auto Object = ObjectEntry->getObject(Ctxt.BinaryTriple); |
| 251 | if (!Object) { |
| 252 | auto Err = Object.takeError(); |
| 253 | WithColor::warning() << "Unable to open " << Path << " " |
| 254 | << toString(std::move(Err)) << '\n'; |
| 255 | } else { |
| 256 | for (const auto &Sym : Object->symbols()) { |
| 257 | uint64_t Address = Sym.getValue(); |
| 258 | Expected<StringRef> Name = Sym.getName(); |
| 259 | if (!Name || (Sym.getFlags() & |
| 260 | (SymbolRef::SF_Absolute | SymbolRef::SF_Common))) { |
| 261 | // TODO: Actually report errors helpfully. |
| 262 | if (!Name) |
| 263 | consumeError(Name.takeError()); |
| 264 | continue; |
| 265 | } |
| 266 | SymbolAddresses[*Name] = Address; |
Kevin Enderby | 813e0cf | 2016-04-20 21:24:34 +0000 | [diff] [blame] | 267 | } |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 268 | } |
| 269 | } |
| 270 | |
Francis Ricci | 6f200df | 2017-10-06 14:49:20 +0000 | [diff] [blame] | 271 | dsymutil::DebugMapObject Res(Path, sys::toTimePoint(Timestamp), MachO::N_OSO); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 272 | for (auto &Entry : Entries) { |
| 273 | auto &Mapping = Entry.second; |
Frederic Riss | c5413fc | 2016-01-31 04:29:22 +0000 | [diff] [blame] | 274 | Optional<uint64_t> ObjAddress; |
| 275 | if (Mapping.ObjectAddress) |
| 276 | ObjAddress = *Mapping.ObjectAddress; |
Frederic Riss | dfbf897 | 2015-06-05 21:12:07 +0000 | [diff] [blame] | 277 | auto AddressIt = SymbolAddresses.find(Entry.first); |
| 278 | if (AddressIt != SymbolAddresses.end()) |
| 279 | ObjAddress = AddressIt->getValue(); |
| 280 | Res.addSymbol(Entry.first, ObjAddress, Mapping.BinaryAddress, Mapping.Size); |
Frederic Riss | 527bb61 | 2015-06-05 20:27:04 +0000 | [diff] [blame] | 281 | } |
| 282 | return Res; |
| 283 | } |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 284 | |
| 285 | } // end namespace yaml |
Eugene Zelenko | 66f724e | 2017-11-01 21:16:06 +0000 | [diff] [blame] | 286 | } // end namespace llvm |