LLVM  14.0.0git
SymbolDumper.cpp
Go to the documentation of this file.
1 //===-- SymbolDumper.cpp - CodeView symbol info dumper ----------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 #include "llvm/ADT/SmallString.h"
20 #include "llvm/Support/Error.h"
22 
23 #include <system_error>
24 
25 using namespace llvm;
26 using namespace llvm::codeview;
27 
28 namespace {
29 /// Use this private dumper implementation to keep implementation details about
30 /// the visitor out of SymbolDumper.h.
31 class CVSymbolDumperImpl : public SymbolVisitorCallbacks {
32 public:
33  CVSymbolDumperImpl(TypeCollection &Types, SymbolDumpDelegate *ObjDelegate,
34  ScopedPrinter &W, CPUType CPU, bool PrintRecordBytes)
35  : Types(Types), ObjDelegate(ObjDelegate), W(W), CompilationCPUType(CPU),
36  PrintRecordBytes(PrintRecordBytes), InFunctionScope(false) {}
37 
38 /// CVSymbolVisitor overrides.
39 #define SYMBOL_RECORD(EnumName, EnumVal, Name) \
40  Error visitKnownRecord(CVSymbol &CVR, Name &Record) override;
41 #define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
42 #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
43 
44  Error visitSymbolBegin(CVSymbol &Record) override;
45  Error visitSymbolEnd(CVSymbol &Record) override;
46  Error visitUnknownSymbol(CVSymbol &Record) override;
47 
48  CPUType getCompilationCPUType() const { return CompilationCPUType; }
49 
50 private:
51  void printLocalVariableAddrRange(const LocalVariableAddrRange &Range,
52  uint32_t RelocationOffset);
53  void printLocalVariableAddrGap(ArrayRef<LocalVariableAddrGap> Gaps);
54  void printTypeIndex(StringRef FieldName, TypeIndex TI);
55 
56  TypeCollection &Types;
57  SymbolDumpDelegate *ObjDelegate;
59 
60  /// Save the machine or CPU type when dumping a compile symbols.
61  CPUType CompilationCPUType = CPUType::X64;
62 
63  bool PrintRecordBytes;
64  bool InFunctionScope;
65 };
66 }
67 
69  switch (Kind) {
70 #define SYMBOL_RECORD(EnumName, EnumVal, Name) \
71  case EnumName: \
72  return #Name;
73 #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
74  default:
75  break;
76  }
77  return "UnknownSym";
78 }
79 
80 void CVSymbolDumperImpl::printLocalVariableAddrRange(
81  const LocalVariableAddrRange &Range, uint32_t RelocationOffset) {
82  DictScope S(W, "LocalVariableAddrRange");
83  if (ObjDelegate)
84  ObjDelegate->printRelocatedField("OffsetStart", RelocationOffset,
85  Range.OffsetStart);
86  W.printHex("ISectStart", Range.ISectStart);
87  W.printHex("Range", Range.Range);
88 }
89 
90 void CVSymbolDumperImpl::printLocalVariableAddrGap(
92  for (auto &Gap : Gaps) {
93  ListScope S(W, "LocalVariableAddrGap");
94  W.printHex("GapStartOffset", Gap.GapStartOffset);
95  W.printHex("Range", Gap.Range);
96  }
97 }
98 
100  codeview::printTypeIndex(W, FieldName, TI, Types);
101 }
102 
103 Error CVSymbolDumperImpl::visitSymbolBegin(CVSymbol &CVR) {
104  W.startLine() << getSymbolKindName(CVR.kind());
105  W.getOStream() << " {\n";
106  W.indent();
107  W.printEnum("Kind", unsigned(CVR.kind()), getSymbolTypeNames());
108  return Error::success();
109 }
110 
111 Error CVSymbolDumperImpl::visitSymbolEnd(CVSymbol &CVR) {
112  if (PrintRecordBytes && ObjDelegate)
113  ObjDelegate->printBinaryBlockWithRelocs("SymData", CVR.content());
114 
115  W.unindent();
116  W.startLine() << "}\n";
117  return Error::success();
118 }
119 
122  W.printHex("PtrParent", Block.Parent);
123  W.printHex("PtrEnd", Block.End);
124  W.printHex("CodeSize", Block.CodeSize);
125  if (ObjDelegate) {
126  ObjDelegate->printRelocatedField("CodeOffset", Block.getRelocationOffset(),
127  Block.CodeOffset, &LinkageName);
128  }
129  W.printHex("Segment", Block.Segment);
130  W.printString("BlockName", Block.Name);
131  W.printString("LinkageName", LinkageName);
132  return Error::success();
133 }
134 
136  W.printString("Name", Thunk.Name);
137  W.printNumber("Parent", Thunk.Parent);
138  W.printNumber("End", Thunk.End);
139  W.printNumber("Next", Thunk.Next);
140  W.printNumber("Off", Thunk.Offset);
141  W.printNumber("Seg", Thunk.Segment);
142  W.printNumber("Len", Thunk.Length);
143  W.printEnum("Ordinal", uint8_t(Thunk.Thunk), getThunkOrdinalNames());
144  return Error::success();
145 }
146 
148  TrampolineSym &Tramp) {
149  W.printEnum("Type", uint16_t(Tramp.Type), getTrampolineNames());
150  W.printNumber("Size", Tramp.Size);
151  W.printNumber("ThunkOff", Tramp.ThunkOffset);
152  W.printNumber("TargetOff", Tramp.TargetOffset);
153  W.printNumber("ThunkSection", Tramp.ThunkSection);
154  W.printNumber("TargetSection", Tramp.TargetSection);
155  return Error::success();
156 }
157 
159  W.printNumber("SectionNumber", Section.SectionNumber);
160  W.printNumber("Alignment", Section.Alignment);
161  W.printNumber("Rva", Section.Rva);
162  W.printNumber("Length", Section.Length);
163  W.printFlags("Characteristics", Section.Characteristics,
165  COFF::SectionCharacteristics(0x00F00000));
166 
167  W.printString("Name", Section.Name);
168  return Error::success();
169 }
170 
172  CoffGroupSym &CoffGroup) {
173  W.printNumber("Size", CoffGroup.Size);
174  W.printFlags("Characteristics", CoffGroup.Characteristics,
176  COFF::SectionCharacteristics(0x00F00000));
177  W.printNumber("Offset", CoffGroup.Offset);
178  W.printNumber("Segment", CoffGroup.Segment);
179  W.printString("Name", CoffGroup.Name);
180  return Error::success();
181 }
182 
184  BPRelativeSym &BPRel) {
185  W.printNumber("Offset", BPRel.Offset);
186  printTypeIndex("Type", BPRel.Type);
187  W.printString("VarName", BPRel.Name);
188  return Error::success();
189 }
190 
192  BuildInfoSym &BuildInfo) {
193  printTypeIndex("BuildId", BuildInfo.BuildId);
194  return Error::success();
195 }
196 
198  CallSiteInfoSym &CallSiteInfo) {
200  if (ObjDelegate) {
201  ObjDelegate->printRelocatedField("CodeOffset",
202  CallSiteInfo.getRelocationOffset(),
203  CallSiteInfo.CodeOffset, &LinkageName);
204  }
205  W.printHex("Segment", CallSiteInfo.Segment);
206  printTypeIndex("Type", CallSiteInfo.Type);
207  if (!LinkageName.empty())
208  W.printString("LinkageName", LinkageName);
209  return Error::success();
210 }
211 
213  EnvBlockSym &EnvBlock) {
214  ListScope L(W, "Entries");
215  for (auto Entry : EnvBlock.Fields) {
216  W.printString(Entry);
217  }
218  return Error::success();
219 }
220 
222  FileStaticSym &FileStatic) {
223  printTypeIndex("Index", FileStatic.Index);
224  W.printNumber("ModFilenameOffset", FileStatic.ModFilenameOffset);
225  W.printFlags("Flags", uint16_t(FileStatic.Flags), getLocalFlagNames());
226  W.printString("Name", FileStatic.Name);
227  return Error::success();
228 }
229 
231  W.printNumber("Ordinal", Export.Ordinal);
232  W.printFlags("Flags", uint16_t(Export.Flags), getExportSymFlagNames());
233  W.printString("Name", Export.Name);
234  return Error::success();
235 }
236 
238  Compile2Sym &Compile2) {
239  W.printEnum("Language", Compile2.getLanguage(), getSourceLanguageNames());
240  W.printFlags("Flags", Compile2.getFlags(), getCompileSym2FlagNames());
241  W.printEnum("Machine", unsigned(Compile2.Machine), getCPUTypeNames());
242  CompilationCPUType = Compile2.Machine;
243  std::string FrontendVersion;
244  {
245  raw_string_ostream Out(FrontendVersion);
246  Out << Compile2.VersionFrontendMajor << '.' << Compile2.VersionFrontendMinor
247  << '.' << Compile2.VersionFrontendBuild;
248  }
249  std::string BackendVersion;
250  {
251  raw_string_ostream Out(BackendVersion);
252  Out << Compile2.VersionBackendMajor << '.' << Compile2.VersionBackendMinor
253  << '.' << Compile2.VersionBackendBuild;
254  }
255  W.printString("FrontendVersion", FrontendVersion);
256  W.printString("BackendVersion", BackendVersion);
257  W.printString("VersionName", Compile2.Version);
258  return Error::success();
259 }
260 
262  Compile3Sym &Compile3) {
263  W.printEnum("Language", uint8_t(Compile3.getLanguage()), getSourceLanguageNames());
264  W.printFlags("Flags", uint32_t(Compile3.getFlags()),
266  W.printEnum("Machine", unsigned(Compile3.Machine), getCPUTypeNames());
267  CompilationCPUType = Compile3.Machine;
268  std::string FrontendVersion;
269  {
270  raw_string_ostream Out(FrontendVersion);
271  Out << Compile3.VersionFrontendMajor << '.' << Compile3.VersionFrontendMinor
272  << '.' << Compile3.VersionFrontendBuild << '.'
273  << Compile3.VersionFrontendQFE;
274  }
275  std::string BackendVersion;
276  {
277  raw_string_ostream Out(BackendVersion);
278  Out << Compile3.VersionBackendMajor << '.' << Compile3.VersionBackendMinor
279  << '.' << Compile3.VersionBackendBuild << '.'
280  << Compile3.VersionBackendQFE;
281  }
282  W.printString("FrontendVersion", FrontendVersion);
283  W.printString("BackendVersion", BackendVersion);
284  W.printString("VersionName", Compile3.Version);
285  return Error::success();
286 }
287 
290  printTypeIndex("Type", Constant.Type);
291  W.printNumber("Value", Constant.Value);
292  W.printString("Name", Constant.Name);
293  return Error::success();
294 }
295 
298  if (ObjDelegate) {
299  ObjDelegate->printRelocatedField("DataOffset", Data.getRelocationOffset(),
300  Data.DataOffset, &LinkageName);
301  }
302  printTypeIndex("Type", Data.Type);
303  W.printString("DisplayName", Data.Name);
304  if (!LinkageName.empty())
305  W.printString("LinkageName", LinkageName);
306  return Error::success();
307 }
308 
310  CVSymbol &CVR,
311  DefRangeFramePointerRelFullScopeSym &DefRangeFramePointerRelFullScope) {
312  W.printNumber("Offset", DefRangeFramePointerRelFullScope.Offset);
313  return Error::success();
314 }
315 
317  CVSymbol &CVR, DefRangeFramePointerRelSym &DefRangeFramePointerRel) {
318  W.printNumber("Offset", DefRangeFramePointerRel.Hdr.Offset);
319  printLocalVariableAddrRange(DefRangeFramePointerRel.Range,
320  DefRangeFramePointerRel.getRelocationOffset());
321  printLocalVariableAddrGap(DefRangeFramePointerRel.Gaps);
322  return Error::success();
323 }
324 
326  CVSymbol &CVR, DefRangeRegisterRelSym &DefRangeRegisterRel) {
327  W.printEnum("BaseRegister", uint16_t(DefRangeRegisterRel.Hdr.Register),
328  getRegisterNames(CompilationCPUType));
329  W.printBoolean("HasSpilledUDTMember",
330  DefRangeRegisterRel.hasSpilledUDTMember());
331  W.printNumber("OffsetInParent", DefRangeRegisterRel.offsetInParent());
332  W.printNumber("BasePointerOffset", DefRangeRegisterRel.Hdr.BasePointerOffset);
333  printLocalVariableAddrRange(DefRangeRegisterRel.Range,
334  DefRangeRegisterRel.getRelocationOffset());
335  printLocalVariableAddrGap(DefRangeRegisterRel.Gaps);
336  return Error::success();
337 }
338 
340  CVSymbol &CVR, DefRangeRegisterSym &DefRangeRegister) {
341  W.printEnum("Register", uint16_t(DefRangeRegister.Hdr.Register),
342  getRegisterNames(CompilationCPUType));
343  W.printNumber("MayHaveNoName", DefRangeRegister.Hdr.MayHaveNoName);
344  printLocalVariableAddrRange(DefRangeRegister.Range,
345  DefRangeRegister.getRelocationOffset());
346  printLocalVariableAddrGap(DefRangeRegister.Gaps);
347  return Error::success();
348 }
349 
351  CVSymbol &CVR, DefRangeSubfieldRegisterSym &DefRangeSubfieldRegister) {
352  W.printEnum("Register", uint16_t(DefRangeSubfieldRegister.Hdr.Register),
353  getRegisterNames(CompilationCPUType));
354  W.printNumber("MayHaveNoName", DefRangeSubfieldRegister.Hdr.MayHaveNoName);
355  W.printNumber("OffsetInParent", DefRangeSubfieldRegister.Hdr.OffsetInParent);
356  printLocalVariableAddrRange(DefRangeSubfieldRegister.Range,
357  DefRangeSubfieldRegister.getRelocationOffset());
358  printLocalVariableAddrGap(DefRangeSubfieldRegister.Gaps);
359  return Error::success();
360 }
361 
363  CVSymbol &CVR, DefRangeSubfieldSym &DefRangeSubfield) {
364  if (ObjDelegate) {
365  DebugStringTableSubsectionRef Strings = ObjDelegate->getStringTable();
366  auto ExpectedProgram = Strings.getString(DefRangeSubfield.Program);
367  if (!ExpectedProgram) {
368  consumeError(ExpectedProgram.takeError());
369  return llvm::make_error<CodeViewError>(
370  "String table offset outside of bounds of String Table!");
371  }
372  W.printString("Program", *ExpectedProgram);
373  }
374  W.printNumber("OffsetInParent", DefRangeSubfield.OffsetInParent);
375  printLocalVariableAddrRange(DefRangeSubfield.Range,
376  DefRangeSubfield.getRelocationOffset());
377  printLocalVariableAddrGap(DefRangeSubfield.Gaps);
378  return Error::success();
379 }
380 
382  DefRangeSym &DefRange) {
383  if (ObjDelegate) {
384  DebugStringTableSubsectionRef Strings = ObjDelegate->getStringTable();
385  auto ExpectedProgram = Strings.getString(DefRange.Program);
386  if (!ExpectedProgram) {
387  consumeError(ExpectedProgram.takeError());
388  return llvm::make_error<CodeViewError>(
389  "String table offset outside of bounds of String Table!");
390  }
391  W.printString("Program", *ExpectedProgram);
392  }
393  printLocalVariableAddrRange(DefRange.Range, DefRange.getRelocationOffset());
394  printLocalVariableAddrGap(DefRange.Gaps);
395  return Error::success();
396 }
397 
399  FrameCookieSym &FrameCookie) {
401  if (ObjDelegate) {
402  ObjDelegate->printRelocatedField("CodeOffset",
403  FrameCookie.getRelocationOffset(),
404  FrameCookie.CodeOffset, &LinkageName);
405  }
406  W.printEnum("Register", uint16_t(FrameCookie.Register),
407  getRegisterNames(CompilationCPUType));
408  W.printEnum("CookieKind", uint16_t(FrameCookie.CookieKind),
410  W.printHex("Flags", FrameCookie.Flags);
411  return Error::success();
412 }
413 
415  FrameProcSym &FrameProc) {
416  W.printHex("TotalFrameBytes", FrameProc.TotalFrameBytes);
417  W.printHex("PaddingFrameBytes", FrameProc.PaddingFrameBytes);
418  W.printHex("OffsetToPadding", FrameProc.OffsetToPadding);
419  W.printHex("BytesOfCalleeSavedRegisters",
420  FrameProc.BytesOfCalleeSavedRegisters);
421  W.printHex("OffsetOfExceptionHandler", FrameProc.OffsetOfExceptionHandler);
422  W.printHex("SectionIdOfExceptionHandler",
423  FrameProc.SectionIdOfExceptionHandler);
424  W.printFlags("Flags", static_cast<uint32_t>(FrameProc.Flags),
426  W.printEnum("LocalFramePtrReg",
427  uint16_t(FrameProc.getLocalFramePtrReg(CompilationCPUType)),
428  getRegisterNames(CompilationCPUType));
429  W.printEnum("ParamFramePtrReg",
430  uint16_t(FrameProc.getParamFramePtrReg(CompilationCPUType)),
431  getRegisterNames(CompilationCPUType));
432  return Error::success();
433 }
434 
436  CVSymbol &CVR, HeapAllocationSiteSym &HeapAllocSite) {
438  if (ObjDelegate) {
439  ObjDelegate->printRelocatedField("CodeOffset",
440  HeapAllocSite.getRelocationOffset(),
441  HeapAllocSite.CodeOffset, &LinkageName);
442  }
443  W.printHex("Segment", HeapAllocSite.Segment);
444  W.printHex("CallInstructionSize", HeapAllocSite.CallInstructionSize);
445  printTypeIndex("Type", HeapAllocSite.Type);
446  if (!LinkageName.empty())
447  W.printString("LinkageName", LinkageName);
448  return Error::success();
449 }
450 
453  W.printHex("PtrParent", InlineSite.Parent);
454  W.printHex("PtrEnd", InlineSite.End);
455  printTypeIndex("Inlinee", InlineSite.Inlinee);
456 
457  ListScope BinaryAnnotations(W, "BinaryAnnotations");
458  for (auto &Annotation : InlineSite.annotations()) {
459  switch (Annotation.OpCode) {
461  W.printString("(Annotation Padding)");
462  break;
466  W.printHex(Annotation.Name, Annotation.U1);
467  break;
473  W.printNumber(Annotation.Name, Annotation.U1);
474  break;
477  W.printNumber(Annotation.Name, Annotation.S1);
478  break;
480  if (ObjDelegate) {
481  W.printHex("ChangeFile",
482  ObjDelegate->getFileNameForFileOffset(Annotation.U1),
483  Annotation.U1);
484  } else {
485  W.printHex("ChangeFile", Annotation.U1);
486  }
487 
488  break;
490  W.startLine() << "ChangeCodeOffsetAndLineOffset: {CodeOffset: "
491  << W.hex(Annotation.U1) << ", LineOffset: " << Annotation.S1
492  << "}\n";
493  break;
494  }
496  W.startLine() << "ChangeCodeLengthAndCodeOffset: {CodeOffset: "
497  << W.hex(Annotation.U2)
498  << ", Length: " << W.hex(Annotation.U1) << "}\n";
499  break;
500  }
501  }
502  }
503  return Error::success();
504 }
505 
508  printTypeIndex("Type", Register.Index);
509  W.printEnum("Seg", uint16_t(Register.Register),
510  getRegisterNames(CompilationCPUType));
511  W.printString("Name", Register.Name);
512  return Error::success();
513 }
514 
516  W.printFlags("Flags", uint32_t(Public.Flags), getPublicSymFlagNames());
517  W.printNumber("Seg", Public.Segment);
518  W.printNumber("Off", Public.Offset);
519  W.printString("Name", Public.Name);
520  return Error::success();
521 }
522 
524  W.printNumber("SumName", ProcRef.SumName);
525  W.printNumber("SymOffset", ProcRef.SymOffset);
526  W.printNumber("Mod", ProcRef.Module);
527  W.printString("Name", ProcRef.Name);
528  return Error::success();
529 }
530 
533  if (ObjDelegate) {
534  ObjDelegate->printRelocatedField("CodeOffset", Label.getRelocationOffset(),
535  Label.CodeOffset, &LinkageName);
536  }
537  W.printHex("Segment", Label.Segment);
538  W.printHex("Flags", uint8_t(Label.Flags));
539  W.printFlags("Flags", uint8_t(Label.Flags), getProcSymFlagNames());
540  W.printString("DisplayName", Label.Name);
541  if (!LinkageName.empty())
542  W.printString("LinkageName", LinkageName);
543  return Error::success();
544 }
545 
547  printTypeIndex("Type", Local.Type);
548  W.printFlags("Flags", uint16_t(Local.Flags), getLocalFlagNames());
549  W.printString("VarName", Local.Name);
550  return Error::success();
551 }
552 
554  W.printHex("Signature", ObjName.Signature);
555  W.printString("ObjectName", ObjName.Name);
556  return Error::success();
557 }
558 
560  if (InFunctionScope)
561  return llvm::make_error<CodeViewError>(
562  "Visiting a ProcSym while inside function scope!");
563 
564  InFunctionScope = true;
565 
567  W.printHex("PtrParent", Proc.Parent);
568  W.printHex("PtrEnd", Proc.End);
569  W.printHex("PtrNext", Proc.Next);
570  W.printHex("CodeSize", Proc.CodeSize);
571  W.printHex("DbgStart", Proc.DbgStart);
572  W.printHex("DbgEnd", Proc.DbgEnd);
573  printTypeIndex("FunctionType", Proc.FunctionType);
574  if (ObjDelegate) {
575  ObjDelegate->printRelocatedField("CodeOffset", Proc.getRelocationOffset(),
576  Proc.CodeOffset, &LinkageName);
577  }
578  W.printHex("Segment", Proc.Segment);
579  W.printFlags("Flags", static_cast<uint8_t>(Proc.Flags),
581  W.printString("DisplayName", Proc.Name);
582  if (!LinkageName.empty())
583  W.printString("LinkageName", LinkageName);
584  return Error::success();
585 }
586 
588  ScopeEndSym &ScopeEnd) {
589  InFunctionScope = false;
590  return Error::success();
591 }
592 
594  ListScope S(W, CVR.kind() == S_CALLEES ? "Callees" : "Callers");
595  for (auto FuncID : Caller.Indices)
596  printTypeIndex("FuncID", FuncID);
597  return Error::success();
598 }
599 
601  RegRelativeSym &RegRel) {
602  W.printHex("Offset", RegRel.Offset);
603  printTypeIndex("Type", RegRel.Type);
604  W.printEnum("Register", uint16_t(RegRel.Register),
605  getRegisterNames(CompilationCPUType));
606  W.printString("VarName", RegRel.Name);
607  return Error::success();
608 }
609 
611  ThreadLocalDataSym &Data) {
613  if (ObjDelegate) {
614  ObjDelegate->printRelocatedField("DataOffset", Data.getRelocationOffset(),
615  Data.DataOffset, &LinkageName);
616  }
617  printTypeIndex("Type", Data.Type);
618  W.printString("DisplayName", Data.Name);
619  if (!LinkageName.empty())
620  W.printString("LinkageName", LinkageName);
621  return Error::success();
622 }
623 
625  printTypeIndex("Type", UDT.Type);
626  W.printString("UDTName", UDT.Name);
627  return Error::success();
628 }
629 
631  UsingNamespaceSym &UN) {
632  W.printString("Namespace", UN.Name);
633  return Error::success();
634 }
635 
637  AnnotationSym &Annot) {
638  W.printHex("Offset", Annot.CodeOffset);
639  W.printHex("Segment", Annot.Segment);
640 
641  ListScope S(W, "Strings");
642  for (StringRef Str : Annot.Strings)
643  W.printString(Str);
644 
645  return Error::success();
646 }
647 
648 Error CVSymbolDumperImpl::visitUnknownSymbol(CVSymbol &CVR) {
649  W.printNumber("Length", CVR.length());
650  return Error::success();
651 }
652 
655  SymbolDeserializer Deserializer(ObjDelegate.get(), Container);
656  CVSymbolDumperImpl Dumper(Types, ObjDelegate.get(), W, CompilationCPUType,
657  PrintRecordBytes);
658 
659  Pipeline.addCallbackToPipeline(Deserializer);
660  Pipeline.addCallbackToPipeline(Dumper);
661  CVSymbolVisitor Visitor(Pipeline);
662  auto Err = Visitor.visitSymbolRecord(Record);
663  CompilationCPUType = Dumper.getCompilationCPUType();
664  return Err;
665 }
666 
669  SymbolDeserializer Deserializer(ObjDelegate.get(), Container);
670  CVSymbolDumperImpl Dumper(Types, ObjDelegate.get(), W, CompilationCPUType,
671  PrintRecordBytes);
672 
673  Pipeline.addCallbackToPipeline(Deserializer);
674  Pipeline.addCallbackToPipeline(Dumper);
675  CVSymbolVisitor Visitor(Pipeline);
676  auto Err = Visitor.visitSymbolStream(Symbols);
677  CompilationCPUType = Dumper.getCompilationCPUType();
678  return Err;
679 }
llvm::codeview::RegisterSym
Definition: SymbolRecord.h:378
llvm::codeview::TrampolineSym::Size
uint16_t Size
Definition: SymbolRecord.h:97
llvm::codeview::BinaryAnnotationsOpCode::ChangeCodeOffsetBase
@ ChangeCodeOffsetBase
llvm::codeview::DefRangeRegisterHeader::MayHaveNoName
ulittle16_t MayHaveNoName
Definition: SymbolRecord.h:481
llvm::codeview::AnnotationSym::Segment
uint16_t Segment
Definition: SymbolRecord.h:1000
llvm::codeview::FrameCookieSym::CookieKind
FrameCookieKind CookieKind
Definition: SymbolRecord.h:857
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::pdb::PDB_DataKind::FileStatic
@ FileStatic
llvm::codeview::Compile2Sym::VersionFrontendMajor
uint16_t VersionFrontendMajor
Definition: SymbolRecord.h:712
llvm::InlineSite
std::tuple< uint64_t, uint32_t > InlineSite
Definition: MCPseudoProbe.h:97
llvm::codeview::HeapAllocationSiteSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:830
llvm::codeview::DefRangeSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:451
llvm::codeview::LocalVariableAddrRange::Range
uint16_t Range
Definition: SymbolRecord.h:426
llvm::codeview::ProcRefSym::Name
StringRef Name
Definition: SymbolRecord.h:403
llvm::codeview::FrameProcSym::Flags
FrameProcedureOptions Flags
Definition: SymbolRecord.h:781
llvm::codeview::getCompileSym3FlagNames
ArrayRef< EnumEntry< uint32_t > > getCompileSym3FlagNames()
Definition: EnumTables.cpp:480
llvm::codeview::ExportSym
Definition: SymbolRecord.h:673
llvm::codeview::SymbolKind
SymbolKind
Duplicate copy of the above enum, but using the official CV names.
Definition: CodeView.h:47
llvm::codeview::SectionSym
Definition: SymbolRecord.h:107
llvm::codeview::PublicSym32
Definition: SymbolRecord.h:361
llvm::raw_string_ostream
A raw_ostream that writes to an std::string.
Definition: raw_ostream.h:625
llvm::codeview::ProcSym::Flags
ProcSymFlags Flags
Definition: SymbolRecord.h:63
SymbolRecord.h
llvm::pdb::PDB_SymType::CoffGroup
@ CoffGroup
llvm::codeview::TrampolineSym
Definition: SymbolRecord.h:90
llvm::codeview::DefRangeSubfieldSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:474
llvm::RISCVFenceField::W
@ W
Definition: RISCVBaseInfo.h:199
llvm::codeview::DefRangeSubfieldRegisterSym::Hdr
DefRangeSubfieldRegisterHeader Hdr
Definition: SymbolRecord.h:518
llvm::codeview::DataSym
Definition: SymbolRecord.h:936
SymbolDumpDelegate.h
llvm::codeview::BinaryAnnotationsOpCode::ChangeCodeOffset
@ ChangeCodeOffset
llvm::codeview::HeapAllocationSiteSym::CodeOffset
uint32_t CodeOffset
Definition: SymbolRecord.h:834
llvm::Error::success
static ErrorSuccess success()
Create a success value.
Definition: Error.h:331
llvm::codeview::HeapAllocationSiteSym::Type
TypeIndex Type
Definition: SymbolRecord.h:837
Error.h
llvm::codeview::ProcSym::FunctionType
TypeIndex FunctionType
Definition: SymbolRecord.h:60
llvm::codeview::ProcSym::Parent
uint32_t Parent
Definition: SymbolRecord.h:54
llvm::codeview::DefRangeSubfieldRegisterHeader::MayHaveNoName
ulittle16_t MayHaveNoName
Definition: SymbolRecord.h:503
llvm::codeview::DefRangeFramePointerRelFullScopeSym::Offset
int32_t Offset
Definition: SymbolRecord.h:595
llvm::codeview::DefRangeRegisterSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:492
llvm::codeview::getLocalFlagNames
ArrayRef< EnumEntry< uint16_t > > getLocalFlagNames()
Definition: EnumTables.cpp:464
llvm::codeview::Compile2Sym::VersionBackendBuild
uint16_t VersionBackendBuild
Definition: SymbolRecord.h:717
llvm::codeview::ObjNameSym
Definition: SymbolRecord.h:645
llvm::codeview::UsingNamespaceSym
Definition: SymbolRecord.h:979
llvm::codeview::CPUType::X64
@ X64
visitKnownRecord
static Error visitKnownRecord(CVSymbol &Record, SymbolVisitorCallbacks &Callbacks)
Definition: CVSymbolVisitor.cpp:21
llvm::DINameKind::LinkageName
@ LinkageName
llvm::codeview::MemberAccess::Public
@ Public
llvm::codeview::BuildInfoSym
Definition: SymbolRecord.h:877
llvm::codeview::getImageSectionCharacteristicNames
ArrayRef< EnumEntry< COFF::SectionCharacteristics > > getImageSectionCharacteristicNames()
Definition: EnumTables.cpp:513
llvm::consumeError
void consumeError(Error Err)
Consume a Error without doing anything.
Definition: Error.h:1035
llvm::Data
@ Data
Definition: SIMachineScheduler.h:55
llvm::codeview::TrampolineSym::ThunkSection
uint16_t ThunkSection
Definition: SymbolRecord.h:100
EnumTables.h
llvm::codeview::DefRangeRegisterSym::Hdr
DefRangeRegisterHeader Hdr
Definition: SymbolRecord.h:494
llvm::codeview::Compile2Sym::getLanguage
uint8_t getLanguage() const
Definition: SymbolRecord.h:721
llvm::codeview::CoffGroupSym
Definition: SymbolRecord.h:124
llvm::codeview::FrameProcSym::OffsetToPadding
uint32_t OffsetToPadding
Definition: SymbolRecord.h:777
llvm::codeview::ObjNameSym::Name
StringRef Name
Definition: SymbolRecord.h:654
llvm::codeview::BinaryAnnotationsOpCode::ChangeLineOffset
@ ChangeLineOffset
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:78
llvm::codeview::ScopeEndSym
Definition: SymbolRecord.h:139
SymbolVisitorCallbackPipeline.h
getSymbolKindName
static StringRef getSymbolKindName(SymbolKind Kind)
Definition: SymbolDumper.cpp:68
llvm::codeview::printTypeIndex
void printTypeIndex(ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeCollection &Types)
Definition: TypeIndex.cpp:92
llvm::codeview::Compile3Sym::VersionFrontendMajor
uint16_t VersionFrontendMajor
Definition: SymbolRecord.h:738
llvm::codeview::DefRangeSym::Program
uint32_t Program
Definition: SymbolRecord.h:450
llvm::codeview::Compile2Sym::VersionFrontendMinor
uint16_t VersionFrontendMinor
Definition: SymbolRecord.h:713
llvm::codeview::getThunkOrdinalNames
ArrayRef< EnumEntry< uint8_t > > getThunkOrdinalNames()
Definition: EnumTables.cpp:504
SymbolDumper.h
llvm::codeview::ConstantSym
Definition: SymbolRecord.h:921
llvm::codeview::Compile3Sym::VersionBackendBuild
uint16_t VersionBackendBuild
Definition: SymbolRecord.h:744
llvm::codeview::DefRangeRegisterRelHeader::BasePointerOffset
little32_t BasePointerOffset
Definition: SymbolRecord.h:554
llvm::codeview::ProcSym::End
uint32_t End
Definition: SymbolRecord.h:55
llvm::codeview::BinaryAnnotationsOpCode::ChangeRangeKind
@ ChangeRangeKind
llvm::pdb::PDB_LocType::RegRel
@ RegRel
llvm::codeview::BinaryAnnotationsOpCode::ChangeColumnEndDelta
@ ChangeColumnEndDelta
llvm::codeview::Compile2Sym::Machine
CPUType Machine
Definition: SymbolRecord.h:711
SmallString.h
llvm::codeview::Compile3Sym::VersionFrontendMinor
uint16_t VersionFrontendMinor
Definition: SymbolRecord.h:739
llvm::codeview::InlineSiteSym
Definition: SymbolRecord.h:333
llvm::codeview::CallSiteInfoSym::Segment
uint16_t Segment
Definition: SymbolRecord.h:814
llvm::codeview::HeapAllocationSiteSym::Segment
uint16_t Segment
Definition: SymbolRecord.h:835
llvm::codeview::EnvBlockSym
Definition: SymbolRecord.h:660
llvm::codeview::EnvBlockSym::Fields
std::vector< StringRef > Fields
Definition: SymbolRecord.h:667
SymbolDeserializer.h
llvm::codeview::CVSymbolVisitor::visitSymbolStream
Error visitSymbolStream(const CVSymbolArray &Symbols)
Definition: CVSymbolVisitor.cpp:66
llvm::VarStreamArray< CVSymbol >
llvm::codeview::ThreadLocalDataSym
Definition: SymbolRecord.h:957
llvm::codeview::TypeCollection
Definition: TypeCollection.h:18
llvm::codeview::LocalVariableAddrRange
Definition: SymbolRecord.h:423
llvm::codeview::CallSiteInfoSym::Type
TypeIndex Type
Definition: SymbolRecord.h:815
llvm::pdb::PDB_SymType::UDT
@ UDT
llvm::codeview::Compile3Sym::getFlags
CompileSym3Flags getFlags() const
Definition: SymbolRecord.h:755
llvm::DelimitedScope
Definition: ScopedPrinter.h:353
false
Definition: StackSlotColoring.cpp:142
llvm::codeview::LocalVariableAddrRange::ISectStart
uint16_t ISectStart
Definition: SymbolRecord.h:425
llvm::codeview::Compile3Sym::Version
StringRef Version
Definition: SymbolRecord.h:746
llvm::codeview::CallSiteInfoSym
Definition: SymbolRecord.h:801
llvm::codeview::Compile3Sym::VersionFrontendQFE
uint16_t VersionFrontendQFE
Definition: SymbolRecord.h:741
SymbolVisitorCallbacks.h
llvm::pdb::PDB_SymType::Caller
@ Caller
llvm::codeview::getPublicSymFlagNames
ArrayRef< EnumEntry< uint32_t > > getPublicSymFlagNames()
Definition: EnumTables.cpp:456
llvm::codeview::DefRangeRegisterRelSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:581
llvm::codeview::DefRangeSubfieldRegisterSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:519
llvm::codeview::CallerSym
Definition: SymbolRecord.h:148
llvm::codeview::Thunk32Sym
Definition: SymbolRecord.h:70
llvm::codeview::FrameProcSym::OffsetOfExceptionHandler
uint32_t OffsetOfExceptionHandler
Definition: SymbolRecord.h:779
llvm::codeview::DefRangeRegisterHeader::Register
ulittle16_t Register
Definition: SymbolRecord.h:480
llvm::codeview::getProcSymFlagNames
ArrayRef< EnumEntry< uint8_t > > getProcSymFlagNames()
Definition: EnumTables.cpp:460
llvm::codeview::BinaryAnnotationsOpCode::CodeOffset
@ CodeOffset
llvm::codeview::DefRangeFramePointerRelSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:545
llvm::codeview::SymbolVisitorCallbacks
Definition: SymbolVisitorCallbacks.h:18
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
llvm::codeview::BinaryAnnotationsOpCode::Invalid
@ Invalid
llvm::codeview::getCPUTypeNames
ArrayRef< EnumEntry< unsigned > > getCPUTypeNames()
Definition: EnumTables.cpp:488
llvm::codeview::LocalSym
Definition: SymbolRecord.h:410
llvm::codeview::TrampolineSym::Type
TrampolineType Type
Definition: SymbolRecord.h:96
llvm::codeview::UsingNamespaceSym::Name
StringRef Name
Definition: SymbolRecord.h:986
llvm::codeview::ProcSym
Definition: SymbolRecord.h:42
llvm::codeview::FrameProcSym::BytesOfCalleeSavedRegisters
uint32_t BytesOfCalleeSavedRegisters
Definition: SymbolRecord.h:778
llvm::codeview::CVSymbolDumper::dump
Error dump(CVRecord< SymbolKind > &Record)
Dumps one type record.
Definition: SymbolDumper.cpp:653
llvm::codeview::Compile2Sym::getFlags
uint32_t getFlags() const
Definition: SymbolRecord.h:722
llvm::Value::Value
Value(Type *Ty, unsigned scid)
Definition: Value.cpp:53
llvm::codeview::DefRangeSubfieldRegisterHeader::Register
ulittle16_t Register
Definition: SymbolRecord.h:502
llvm::codeview::DefRangeSubfieldRegisterSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:520
llvm::Constant
This is an important base class in LLVM.
Definition: Constant.h:41
llvm::codeview::ProcRefSym::SymOffset
uint32_t SymOffset
Definition: SymbolRecord.h:401
llvm::codeview::FrameCookieSym::Register
uint16_t Register
Definition: SymbolRecord.h:856
llvm::codeview::Compile3Sym::getLanguage
SourceLanguage getLanguage() const
Definition: SymbolRecord.h:752
llvm::codeview::DefRangeRegisterSym
Definition: SymbolRecord.h:485
llvm::codeview::Compile2Sym::Version
StringRef Version
Definition: SymbolRecord.h:718
llvm::codeview::ProcSym::Name
StringRef Name
Definition: SymbolRecord.h:64
llvm::codeview::CVRecord::kind
Kind kind() const
Definition: CVRecord.h:43
llvm::codeview::Compile3Sym::VersionFrontendBuild
uint16_t VersionFrontendBuild
Definition: SymbolRecord.h:740
llvm::codeview::ProcSym::DbgEnd
uint32_t DbgEnd
Definition: SymbolRecord.h:59
llvm::codeview::ProcSym::Segment
uint16_t Segment
Definition: SymbolRecord.h:62
llvm::codeview::TrampolineSym::ThunkOffset
uint32_t ThunkOffset
Definition: SymbolRecord.h:98
llvm::codeview::HeapAllocationSiteSym::CallInstructionSize
uint16_t CallInstructionSize
Definition: SymbolRecord.h:836
llvm::codeview::DefRangeFramePointerRelFullScopeSym
Definition: SymbolRecord.h:587
llvm::codeview::DefRangeRegisterRelSym::Hdr
DefRangeRegisterRelHeader Hdr
Definition: SymbolRecord.h:579
llvm::codeview::LocalVariableAddrRange::OffsetStart
uint32_t OffsetStart
Definition: SymbolRecord.h:424
llvm::codeview::DefRangeSubfieldRegisterSym
Definition: SymbolRecord.h:508
llvm::codeview::Compile3Sym::Machine
CPUType Machine
Definition: SymbolRecord.h:737
llvm::codeview::BPRelativeSym::Offset
int32_t Offset
Definition: SymbolRecord.h:897
llvm::codeview::CallSiteInfoSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:809
llvm::codeview::Compile3Sym::VersionBackendMinor
uint16_t VersionBackendMinor
Definition: SymbolRecord.h:743
llvm::codeview::DefRangeRegisterRelSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:580
llvm::pdb::PDB_SymType::Thunk
@ Thunk
llvm::codeview::FileStaticSym
Definition: SymbolRecord.h:687
llvm::codeview::getFrameCookieKindNames
ArrayRef< EnumEntry< uint8_t > > getFrameCookieKindNames()
Definition: EnumTables.cpp:468
llvm::codeview::FrameCookieSym::CodeOffset
uint32_t CodeOffset
Definition: SymbolRecord.h:855
llvm::codeview::AnnotationSym
Definition: SymbolRecord.h:992
llvm::codeview::TrampolineSym::TargetSection
uint16_t TargetSection
Definition: SymbolRecord.h:101
llvm::codeview::SymbolVisitorCallbackPipeline::addCallbackToPipeline
void addCallbackToPipeline(SymbolVisitorCallbacks &Callbacks)
Definition: SymbolVisitorCallbackPipeline.h:56
llvm::Record
Definition: Record.h:1472
llvm::codeview::getSymbolTypeNames
ArrayRef< EnumEntry< SymbolKind > > getSymbolTypeNames()
Definition: EnumTables.cpp:439
llvm::codeview::DefRangeSubfieldSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:467
llvm::codeview::CVRecord::content
ArrayRef< uint8_t > content() const
Definition: CVRecord.h:57
llvm::codeview::FrameCookieSym
Definition: SymbolRecord.h:843
llvm::codeview::FrameProcSym
Definition: SymbolRecord.h:768
llvm::codeview::AnnotationSym::CodeOffset
uint32_t CodeOffset
Definition: SymbolRecord.h:999
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::codeview::BinaryAnnotationsOpCode::ChangeLineEndDelta
@ ChangeLineEndDelta
llvm::codeview::Compile3Sym::VersionBackendMajor
uint16_t VersionBackendMajor
Definition: SymbolRecord.h:742
llvm::codeview::ObjNameSym::Signature
uint32_t Signature
Definition: SymbolRecord.h:653
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::codeview::CVRecord
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
Definition: CVRecord.h:30
llvm::codeview::getSourceLanguageNames
ArrayRef< EnumEntry< SourceLanguage > > getSourceLanguageNames()
Definition: EnumTables.cpp:472
llvm::codeview::LabelSym
Definition: SymbolRecord.h:624
llvm::codeview::DefRangeRegisterSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:496
llvm::codeview::HeapAllocationSiteSym
Definition: SymbolRecord.h:821
llvm::codeview::Compile2Sym::VersionBackendMinor
uint16_t VersionBackendMinor
Definition: SymbolRecord.h:716
uint32_t
llvm::codeview::DefRangeFramePointerRelSym
Definition: SymbolRecord.h:530
llvm::codeview::BPRelativeSym::Name
StringRef Name
Definition: SymbolRecord.h:899
llvm::codeview::ProcRefSym::SumName
uint32_t SumName
Definition: SymbolRecord.h:400
llvm::codeview::FrameCookieSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:851
llvm::codeview::DefRangeSubfieldRegisterSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:516
llvm::codeview::DefRangeRegisterRelSym
Definition: SymbolRecord.h:558
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::codeview::FrameProcSym::PaddingFrameBytes
uint32_t PaddingFrameBytes
Definition: SymbolRecord.h:776
llvm::codeview::DefRangeSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:452
llvm::codeview::FrameProcSym::getParamFramePtrReg
RegisterId getParamFramePtrReg(CPUType CPU) const
Extract the register this frame uses to refer to parameters.
Definition: SymbolRecord.h:790
llvm::codeview::SymbolDumpDelegate
Definition: SymbolDumpDelegate.h:20
llvm::codeview::DefRangeSubfieldSym::Program
uint32_t Program
Definition: SymbolRecord.h:471
llvm::codeview::BinaryAnnotationsOpCode::ChangeCodeLengthAndCodeOffset
@ ChangeCodeLengthAndCodeOffset
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
llvm::pdb::PDB_DataKind::Local
@ Local
llvm::codeview::DefRangeSubfieldSym
Definition: SymbolRecord.h:458
llvm::pdb::PDB_SymType::Annotation
@ Annotation
llvm::codeview::ProcSym::CodeOffset
uint32_t CodeOffset
Definition: SymbolRecord.h:61
llvm::codeview::BinaryAnnotationsOpCode::ChangeFile
@ ChangeFile
llvm::pdb::PDB_SymType::Label
@ Label
llvm::codeview::getTrampolineNames
ArrayRef< EnumEntry< uint16_t > > getTrampolineNames()
Definition: EnumTables.cpp:508
llvm::codeview::AnnotationSym::Strings
std::vector< StringRef > Strings
Definition: SymbolRecord.h:1001
uint16_t
llvm::codeview::DefRangeRegisterRelSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:577
llvm::codeview::Compile3Sym
Definition: SymbolRecord.h:728
llvm::codeview::FrameProcSym::getLocalFramePtrReg
RegisterId getLocalFramePtrReg(CPUType CPU) const
Extract the register this frame uses to refer to local variables.
Definition: SymbolRecord.h:784
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
llvm::ScopedPrinter
Definition: ScopedPrinter.h:70
llvm::codeview::ProcSym::DbgStart
uint32_t DbgStart
Definition: SymbolRecord.h:58
llvm::codeview::CPUType
CPUType
These values correspond to the CV_CPU_TYPE_e enumeration, and are documented here: https://msdn....
Definition: CodeView.h:78
llvm::codeview::getFrameProcSymFlagNames
ArrayRef< EnumEntry< uint32_t > > getFrameProcSymFlagNames()
Definition: EnumTables.cpp:492
llvm::codeview::BinaryAnnotationsOpCode::ChangeColumnEnd
@ ChangeColumnEnd
llvm::codeview::CVSymbolVisitor::visitSymbolRecord
Error visitSymbolRecord(CVSymbol &Record)
Definition: CVSymbolVisitor.cpp:54
llvm::codeview::Compile3Sym::VersionBackendQFE
uint16_t VersionBackendQFE
Definition: SymbolRecord.h:745
llvm::codeview::CVSymbolVisitor
Definition: CVSymbolVisitor.h:19
llvm::codeview::DefRangeRegisterRelSym::offsetInParent
uint16_t offsetInParent() const
Definition: SymbolRecord.h:575
llvm::codeview::BPRelativeSym::Type
TypeIndex Type
Definition: SymbolRecord.h:898
TypeIndex.h
llvm::codeview::BinaryAnnotationsOpCode::ChangeColumnStart
@ ChangeColumnStart
llvm::codeview::getCompileSym2FlagNames
ArrayRef< EnumEntry< uint32_t > > getCompileSym2FlagNames()
Definition: EnumTables.cpp:476
llvm::codeview::BPRelativeSym
Definition: SymbolRecord.h:890
llvm::codeview::BlockSym
Definition: SymbolRecord.h:601
llvm::codeview::DefRangeFramePointerRelSym::Gaps
std::vector< LocalVariableAddrGap > Gaps
Definition: SymbolRecord.h:546
DebugStringTableSubsection.h
llvm::codeview::DefRangeSubfieldRegisterHeader::OffsetInParent
ulittle32_t OffsetInParent
Definition: SymbolRecord.h:504
llvm::codeview::DefRangeFramePointerRelSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:540
llvm::codeview::SymbolDeserializer
Definition: SymbolDeserializer.h:24
llvm::codeview::TrampolineSym::TargetOffset
uint32_t TargetOffset
Definition: SymbolRecord.h:99
llvm::codeview
Definition: AppendingTypeTableBuilder.h:22
llvm::codeview::DebugStringTableSubsectionRef
Represents a read-only view of a CodeView string table.
Definition: DebugStringTableSubsection.h:31
llvm::codeview::RegRelativeSym
Definition: SymbolRecord.h:905
llvm::codeview::FrameProcSym::SectionIdOfExceptionHandler
uint16_t SectionIdOfExceptionHandler
Definition: SymbolRecord.h:780
llvm::codeview::ProcRefSym::Module
uint16_t Module
Definition: SymbolRecord.h:402
llvm::codeview::DefRangeRegisterRelSym::hasSpilledUDTMember
bool hasSpilledUDTMember() const
Definition: SymbolRecord.h:574
llvm::codeview::Compile2Sym::VersionFrontendBuild
uint16_t VersionFrontendBuild
Definition: SymbolRecord.h:714
llvm::codeview::DefRangeFramePointerRelSym::Hdr
DefRangeFramePointerRelHeader Hdr
Definition: SymbolRecord.h:544
llvm::codeview::Compile2Sym::VersionBackendMajor
uint16_t VersionBackendMajor
Definition: SymbolRecord.h:715
CVSymbolVisitor.h
llvm::codeview::DefRangeSym
Definition: SymbolRecord.h:437
llvm::codeview::ProcSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:50
llvm::codeview::BinaryAnnotationsOpCode::ChangeCodeOffsetAndLineOffset
@ ChangeCodeOffsetAndLineOffset
llvm::codeview::Compile2Sym
Definition: SymbolRecord.h:703
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:95
llvm::codeview::ProcSym::Next
uint32_t Next
Definition: SymbolRecord.h:56
llvm::codeview::getExportSymFlagNames
ArrayRef< EnumEntry< uint16_t > > getExportSymFlagNames()
Definition: EnumTables.cpp:496
llvm::codeview::DefRangeSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:446
llvm::codeview::DefRangeRegisterSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:495
llvm::Register::Register
constexpr Register(unsigned Val=0)
Definition: Register.h:23
llvm::codeview::ProcRefSym
Definition: SymbolRecord.h:393
llvm::codeview::FrameProcSym::TotalFrameBytes
uint32_t TotalFrameBytes
Definition: SymbolRecord.h:775
llvm::codeview::CallSiteInfoSym::CodeOffset
uint32_t CodeOffset
Definition: SymbolRecord.h:813
llvm::codeview::SymbolVisitorCallbackPipeline
Definition: SymbolVisitorCallbackPipeline.h:20
llvm::pdb::PDB_SymType::Block
@ Block
llvm::codeview::BuildInfoSym::BuildId
TypeIndex BuildId
Definition: SymbolRecord.h:884
llvm::codeview::DefRangeRegisterRelHeader::Register
ulittle16_t Register
Definition: SymbolRecord.h:552
llvm::COFF::SectionCharacteristics
SectionCharacteristics
Definition: COFF.h:283
llvm::codeview::DefRangeFramePointerRelHeader::Offset
little32_t Offset
Definition: SymbolRecord.h:526
llvm::codeview::DefRangeSubfieldSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:473
llvm::pdb::PDB_SymType::Export
@ Export
llvm::codeview::ProcSym::CodeSize
uint32_t CodeSize
Definition: SymbolRecord.h:57
llvm::codeview::BinaryAnnotationsOpCode::ChangeCodeLength
@ ChangeCodeLength
llvm::codeview::UDTSym
Definition: SymbolRecord.h:864
llvm::codeview::FrameCookieSym::Flags
uint8_t Flags
Definition: SymbolRecord.h:858
llvm::codeview::getRegisterNames
ArrayRef< EnumEntry< uint16_t > > getRegisterNames(CPUType Cpu)
Definition: EnumTables.cpp:447
llvm::codeview::DefRangeSubfieldSym::OffsetInParent
uint16_t OffsetInParent
Definition: SymbolRecord.h:472
ScopedPrinter.h
llvm::codeview::CVRecord::length
uint32_t length() const
Definition: CVRecord.h:41