LLVM  16.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/StringRef.h"
20 #include "llvm/Support/Error.h"
22 
23 using namespace llvm;
24 using namespace llvm::codeview;
25 
26 namespace {
27 /// Use this private dumper implementation to keep implementation details about
28 /// the visitor out of SymbolDumper.h.
29 class CVSymbolDumperImpl : public SymbolVisitorCallbacks {
30 public:
31  CVSymbolDumperImpl(TypeCollection &Types, SymbolDumpDelegate *ObjDelegate,
32  ScopedPrinter &W, CPUType CPU, bool PrintRecordBytes)
33  : Types(Types), ObjDelegate(ObjDelegate), W(W), CompilationCPUType(CPU),
34  PrintRecordBytes(PrintRecordBytes), InFunctionScope(false) {}
35 
36 /// CVSymbolVisitor overrides.
37 #define SYMBOL_RECORD(EnumName, EnumVal, Name) \
38  Error visitKnownRecord(CVSymbol &CVR, Name &Record) override;
39 #define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
40 #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
41 
42  Error visitSymbolBegin(CVSymbol &Record) override;
43  Error visitSymbolEnd(CVSymbol &Record) override;
44  Error visitUnknownSymbol(CVSymbol &Record) override;
45 
46  CPUType getCompilationCPUType() const { return CompilationCPUType; }
47 
48 private:
49  void printLocalVariableAddrRange(const LocalVariableAddrRange &Range,
50  uint32_t RelocationOffset);
51  void printLocalVariableAddrGap(ArrayRef<LocalVariableAddrGap> Gaps);
52  void printTypeIndex(StringRef FieldName, TypeIndex TI);
53 
55  SymbolDumpDelegate *ObjDelegate;
57 
58  /// Save the machine or CPU type when dumping a compile symbols.
59  CPUType CompilationCPUType = CPUType::X64;
60 
61  bool PrintRecordBytes;
62  bool InFunctionScope;
63 };
64 }
65 
67  switch (Kind) {
68 #define SYMBOL_RECORD(EnumName, EnumVal, Name) \
69  case EnumName: \
70  return #Name;
71 #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
72  default:
73  break;
74  }
75  return "UnknownSym";
76 }
77 
78 void CVSymbolDumperImpl::printLocalVariableAddrRange(
79  const LocalVariableAddrRange &Range, uint32_t RelocationOffset) {
80  DictScope S(W, "LocalVariableAddrRange");
81  if (ObjDelegate)
82  ObjDelegate->printRelocatedField("OffsetStart", RelocationOffset,
83  Range.OffsetStart);
84  W.printHex("ISectStart", Range.ISectStart);
85  W.printHex("Range", Range.Range);
86 }
87 
88 void CVSymbolDumperImpl::printLocalVariableAddrGap(
90  for (auto &Gap : Gaps) {
91  ListScope S(W, "LocalVariableAddrGap");
92  W.printHex("GapStartOffset", Gap.GapStartOffset);
93  W.printHex("Range", Gap.Range);
94  }
95 }
96 
98  codeview::printTypeIndex(W, FieldName, TI, Types);
99 }
100 
101 Error CVSymbolDumperImpl::visitSymbolBegin(CVSymbol &CVR) {
102  W.startLine() << getSymbolKindName(CVR.kind());
103  W.getOStream() << " {\n";
104  W.indent();
105  W.printEnum("Kind", unsigned(CVR.kind()), getSymbolTypeNames());
106  return Error::success();
107 }
108 
109 Error CVSymbolDumperImpl::visitSymbolEnd(CVSymbol &CVR) {
110  if (PrintRecordBytes && ObjDelegate)
111  ObjDelegate->printBinaryBlockWithRelocs("SymData", CVR.content());
112 
113  W.unindent();
114  W.startLine() << "}\n";
115  return Error::success();
116 }
117 
120  W.printHex("PtrParent", Block.Parent);
121  W.printHex("PtrEnd", Block.End);
122  W.printHex("CodeSize", Block.CodeSize);
123  if (ObjDelegate) {
124  ObjDelegate->printRelocatedField("CodeOffset", Block.getRelocationOffset(),
125  Block.CodeOffset, &LinkageName);
126  }
127  W.printHex("Segment", Block.Segment);
128  W.printString("BlockName", Block.Name);
129  W.printString("LinkageName", LinkageName);
130  return Error::success();
131 }
132 
134  W.printString("Name", Thunk.Name);
135  W.printNumber("Parent", Thunk.Parent);
136  W.printNumber("End", Thunk.End);
137  W.printNumber("Next", Thunk.Next);
138  W.printNumber("Off", Thunk.Offset);
139  W.printNumber("Seg", Thunk.Segment);
140  W.printNumber("Len", Thunk.Length);
141  W.printEnum("Ordinal", uint8_t(Thunk.Thunk), getThunkOrdinalNames());
142  return Error::success();
143 }
144 
146  TrampolineSym &Tramp) {
147  W.printEnum("Type", uint16_t(Tramp.Type), getTrampolineNames());
148  W.printNumber("Size", Tramp.Size);
149  W.printNumber("ThunkOff", Tramp.ThunkOffset);
150  W.printNumber("TargetOff", Tramp.TargetOffset);
151  W.printNumber("ThunkSection", Tramp.ThunkSection);
152  W.printNumber("TargetSection", Tramp.TargetSection);
153  return Error::success();
154 }
155 
157  W.printNumber("SectionNumber", Section.SectionNumber);
158  W.printNumber("Alignment", Section.Alignment);
159  W.printNumber("Rva", Section.Rva);
160  W.printNumber("Length", Section.Length);
161  W.printFlags("Characteristics", Section.Characteristics,
163  COFF::SectionCharacteristics(0x00F00000));
164 
165  W.printString("Name", Section.Name);
166  return Error::success();
167 }
168 
170  CoffGroupSym &CoffGroup) {
171  W.printNumber("Size", CoffGroup.Size);
172  W.printFlags("Characteristics", CoffGroup.Characteristics,
174  COFF::SectionCharacteristics(0x00F00000));
175  W.printNumber("Offset", CoffGroup.Offset);
176  W.printNumber("Segment", CoffGroup.Segment);
177  W.printString("Name", CoffGroup.Name);
178  return Error::success();
179 }
180 
182  BPRelativeSym &BPRel) {
183  W.printNumber("Offset", BPRel.Offset);
184  printTypeIndex("Type", BPRel.Type);
185  W.printString("VarName", BPRel.Name);
186  return Error::success();
187 }
188 
190  BuildInfoSym &BuildInfo) {
191  printTypeIndex("BuildId", BuildInfo.BuildId);
192  return Error::success();
193 }
194 
196  CallSiteInfoSym &CallSiteInfo) {
198  if (ObjDelegate) {
199  ObjDelegate->printRelocatedField("CodeOffset",
200  CallSiteInfo.getRelocationOffset(),
201  CallSiteInfo.CodeOffset, &LinkageName);
202  }
203  W.printHex("Segment", CallSiteInfo.Segment);
204  printTypeIndex("Type", CallSiteInfo.Type);
205  if (!LinkageName.empty())
206  W.printString("LinkageName", LinkageName);
207  return Error::success();
208 }
209 
211  EnvBlockSym &EnvBlock) {
212  ListScope L(W, "Entries");
213  for (auto Entry : EnvBlock.Fields) {
214  W.printString(Entry);
215  }
216  return Error::success();
217 }
218 
220  FileStaticSym &FileStatic) {
221  printTypeIndex("Index", FileStatic.Index);
222  W.printNumber("ModFilenameOffset", FileStatic.ModFilenameOffset);
223  W.printFlags("Flags", uint16_t(FileStatic.Flags), getLocalFlagNames());
224  W.printString("Name", FileStatic.Name);
225  return Error::success();
226 }
227 
229  W.printNumber("Ordinal", Export.Ordinal);
230  W.printFlags("Flags", uint16_t(Export.Flags), getExportSymFlagNames());
231  W.printString("Name", Export.Name);
232  return Error::success();
233 }
234 
236  Compile2Sym &Compile2) {
237  W.printEnum("Language", Compile2.getLanguage(), getSourceLanguageNames());
238  W.printFlags("Flags", Compile2.getFlags(), getCompileSym2FlagNames());
239  W.printEnum("Machine", unsigned(Compile2.Machine), getCPUTypeNames());
240  CompilationCPUType = Compile2.Machine;
241  std::string FrontendVersion;
242  {
243  raw_string_ostream Out(FrontendVersion);
244  Out << Compile2.VersionFrontendMajor << '.' << Compile2.VersionFrontendMinor
245  << '.' << Compile2.VersionFrontendBuild;
246  }
247  std::string BackendVersion;
248  {
249  raw_string_ostream Out(BackendVersion);
250  Out << Compile2.VersionBackendMajor << '.' << Compile2.VersionBackendMinor
251  << '.' << Compile2.VersionBackendBuild;
252  }
253  W.printString("FrontendVersion", FrontendVersion);
254  W.printString("BackendVersion", BackendVersion);
255  W.printString("VersionName", Compile2.Version);
256  return Error::success();
257 }
258 
260  Compile3Sym &Compile3) {
261  W.printEnum("Language", uint8_t(Compile3.getLanguage()), getSourceLanguageNames());
262  W.printFlags("Flags", uint32_t(Compile3.getFlags()),
264  W.printEnum("Machine", unsigned(Compile3.Machine), getCPUTypeNames());
265  CompilationCPUType = Compile3.Machine;
266  std::string FrontendVersion;
267  {
268  raw_string_ostream Out(FrontendVersion);
269  Out << Compile3.VersionFrontendMajor << '.' << Compile3.VersionFrontendMinor
270  << '.' << Compile3.VersionFrontendBuild << '.'
271  << Compile3.VersionFrontendQFE;
272  }
273  std::string BackendVersion;
274  {
275  raw_string_ostream Out(BackendVersion);
276  Out << Compile3.VersionBackendMajor << '.' << Compile3.VersionBackendMinor
277  << '.' << Compile3.VersionBackendBuild << '.'
278  << Compile3.VersionBackendQFE;
279  }
280  W.printString("FrontendVersion", FrontendVersion);
281  W.printString("BackendVersion", BackendVersion);
282  W.printString("VersionName", Compile3.Version);
283  return Error::success();
284 }
285 
288  printTypeIndex("Type", Constant.Type);
289  W.printNumber("Value", Constant.Value);
290  W.printString("Name", Constant.Name);
291  return Error::success();
292 }
293 
296  if (ObjDelegate) {
297  ObjDelegate->printRelocatedField("DataOffset", Data.getRelocationOffset(),
298  Data.DataOffset, &LinkageName);
299  }
300  printTypeIndex("Type", Data.Type);
301  W.printString("DisplayName", Data.Name);
302  if (!LinkageName.empty())
303  W.printString("LinkageName", LinkageName);
304  return Error::success();
305 }
306 
308  CVSymbol &CVR,
309  DefRangeFramePointerRelFullScopeSym &DefRangeFramePointerRelFullScope) {
310  W.printNumber("Offset", DefRangeFramePointerRelFullScope.Offset);
311  return Error::success();
312 }
313 
315  CVSymbol &CVR, DefRangeFramePointerRelSym &DefRangeFramePointerRel) {
316  W.printNumber("Offset", DefRangeFramePointerRel.Hdr.Offset);
317  printLocalVariableAddrRange(DefRangeFramePointerRel.Range,
318  DefRangeFramePointerRel.getRelocationOffset());
319  printLocalVariableAddrGap(DefRangeFramePointerRel.Gaps);
320  return Error::success();
321 }
322 
324  CVSymbol &CVR, DefRangeRegisterRelSym &DefRangeRegisterRel) {
325  W.printEnum("BaseRegister", uint16_t(DefRangeRegisterRel.Hdr.Register),
326  getRegisterNames(CompilationCPUType));
327  W.printBoolean("HasSpilledUDTMember",
328  DefRangeRegisterRel.hasSpilledUDTMember());
329  W.printNumber("OffsetInParent", DefRangeRegisterRel.offsetInParent());
330  W.printNumber("BasePointerOffset", DefRangeRegisterRel.Hdr.BasePointerOffset);
331  printLocalVariableAddrRange(DefRangeRegisterRel.Range,
332  DefRangeRegisterRel.getRelocationOffset());
333  printLocalVariableAddrGap(DefRangeRegisterRel.Gaps);
334  return Error::success();
335 }
336 
338  CVSymbol &CVR, DefRangeRegisterSym &DefRangeRegister) {
339  W.printEnum("Register", uint16_t(DefRangeRegister.Hdr.Register),
340  getRegisterNames(CompilationCPUType));
341  W.printNumber("MayHaveNoName", DefRangeRegister.Hdr.MayHaveNoName);
342  printLocalVariableAddrRange(DefRangeRegister.Range,
343  DefRangeRegister.getRelocationOffset());
344  printLocalVariableAddrGap(DefRangeRegister.Gaps);
345  return Error::success();
346 }
347 
349  CVSymbol &CVR, DefRangeSubfieldRegisterSym &DefRangeSubfieldRegister) {
350  W.printEnum("Register", uint16_t(DefRangeSubfieldRegister.Hdr.Register),
351  getRegisterNames(CompilationCPUType));
352  W.printNumber("MayHaveNoName", DefRangeSubfieldRegister.Hdr.MayHaveNoName);
353  W.printNumber("OffsetInParent", DefRangeSubfieldRegister.Hdr.OffsetInParent);
354  printLocalVariableAddrRange(DefRangeSubfieldRegister.Range,
355  DefRangeSubfieldRegister.getRelocationOffset());
356  printLocalVariableAddrGap(DefRangeSubfieldRegister.Gaps);
357  return Error::success();
358 }
359 
361  CVSymbol &CVR, DefRangeSubfieldSym &DefRangeSubfield) {
362  if (ObjDelegate) {
363  DebugStringTableSubsectionRef Strings = ObjDelegate->getStringTable();
364  auto ExpectedProgram = Strings.getString(DefRangeSubfield.Program);
365  if (!ExpectedProgram) {
366  consumeError(ExpectedProgram.takeError());
367  return llvm::make_error<CodeViewError>(
368  "String table offset outside of bounds of String Table!");
369  }
370  W.printString("Program", *ExpectedProgram);
371  }
372  W.printNumber("OffsetInParent", DefRangeSubfield.OffsetInParent);
373  printLocalVariableAddrRange(DefRangeSubfield.Range,
374  DefRangeSubfield.getRelocationOffset());
375  printLocalVariableAddrGap(DefRangeSubfield.Gaps);
376  return Error::success();
377 }
378 
380  DefRangeSym &DefRange) {
381  if (ObjDelegate) {
382  DebugStringTableSubsectionRef Strings = ObjDelegate->getStringTable();
383  auto ExpectedProgram = Strings.getString(DefRange.Program);
384  if (!ExpectedProgram) {
385  consumeError(ExpectedProgram.takeError());
386  return llvm::make_error<CodeViewError>(
387  "String table offset outside of bounds of String Table!");
388  }
389  W.printString("Program", *ExpectedProgram);
390  }
391  printLocalVariableAddrRange(DefRange.Range, DefRange.getRelocationOffset());
392  printLocalVariableAddrGap(DefRange.Gaps);
393  return Error::success();
394 }
395 
397  FrameCookieSym &FrameCookie) {
399  if (ObjDelegate) {
400  ObjDelegate->printRelocatedField("CodeOffset",
401  FrameCookie.getRelocationOffset(),
402  FrameCookie.CodeOffset, &LinkageName);
403  }
404  W.printEnum("Register", uint16_t(FrameCookie.Register),
405  getRegisterNames(CompilationCPUType));
406  W.printEnum("CookieKind", uint16_t(FrameCookie.CookieKind),
408  W.printHex("Flags", FrameCookie.Flags);
409  return Error::success();
410 }
411 
413  FrameProcSym &FrameProc) {
414  W.printHex("TotalFrameBytes", FrameProc.TotalFrameBytes);
415  W.printHex("PaddingFrameBytes", FrameProc.PaddingFrameBytes);
416  W.printHex("OffsetToPadding", FrameProc.OffsetToPadding);
417  W.printHex("BytesOfCalleeSavedRegisters",
418  FrameProc.BytesOfCalleeSavedRegisters);
419  W.printHex("OffsetOfExceptionHandler", FrameProc.OffsetOfExceptionHandler);
420  W.printHex("SectionIdOfExceptionHandler",
421  FrameProc.SectionIdOfExceptionHandler);
422  W.printFlags("Flags", static_cast<uint32_t>(FrameProc.Flags),
424  W.printEnum("LocalFramePtrReg",
425  uint16_t(FrameProc.getLocalFramePtrReg(CompilationCPUType)),
426  getRegisterNames(CompilationCPUType));
427  W.printEnum("ParamFramePtrReg",
428  uint16_t(FrameProc.getParamFramePtrReg(CompilationCPUType)),
429  getRegisterNames(CompilationCPUType));
430  return Error::success();
431 }
432 
434  CVSymbol &CVR, HeapAllocationSiteSym &HeapAllocSite) {
436  if (ObjDelegate) {
437  ObjDelegate->printRelocatedField("CodeOffset",
438  HeapAllocSite.getRelocationOffset(),
439  HeapAllocSite.CodeOffset, &LinkageName);
440  }
441  W.printHex("Segment", HeapAllocSite.Segment);
442  W.printHex("CallInstructionSize", HeapAllocSite.CallInstructionSize);
443  printTypeIndex("Type", HeapAllocSite.Type);
444  if (!LinkageName.empty())
445  W.printString("LinkageName", LinkageName);
446  return Error::success();
447 }
448 
451  W.printHex("PtrParent", InlineSite.Parent);
452  W.printHex("PtrEnd", InlineSite.End);
453  printTypeIndex("Inlinee", InlineSite.Inlinee);
454 
455  ListScope BinaryAnnotations(W, "BinaryAnnotations");
456  for (auto &Annotation : InlineSite.annotations()) {
457  switch (Annotation.OpCode) {
459  W.printString("(Annotation Padding)");
460  break;
464  W.printHex(Annotation.Name, Annotation.U1);
465  break;
471  W.printNumber(Annotation.Name, Annotation.U1);
472  break;
475  W.printNumber(Annotation.Name, Annotation.S1);
476  break;
478  if (ObjDelegate) {
479  W.printHex("ChangeFile",
480  ObjDelegate->getFileNameForFileOffset(Annotation.U1),
481  Annotation.U1);
482  } else {
483  W.printHex("ChangeFile", Annotation.U1);
484  }
485 
486  break;
488  W.startLine() << "ChangeCodeOffsetAndLineOffset: {CodeOffset: "
489  << W.hex(Annotation.U1) << ", LineOffset: " << Annotation.S1
490  << "}\n";
491  break;
492  }
494  W.startLine() << "ChangeCodeLengthAndCodeOffset: {CodeOffset: "
495  << W.hex(Annotation.U2)
496  << ", Length: " << W.hex(Annotation.U1) << "}\n";
497  break;
498  }
499  }
500  }
501  return Error::success();
502 }
503 
506  printTypeIndex("Type", Register.Index);
507  W.printEnum("Seg", uint16_t(Register.Register),
508  getRegisterNames(CompilationCPUType));
509  W.printString("Name", Register.Name);
510  return Error::success();
511 }
512 
514  W.printFlags("Flags", uint32_t(Public.Flags), getPublicSymFlagNames());
515  W.printNumber("Seg", Public.Segment);
516  W.printNumber("Off", Public.Offset);
517  W.printString("Name", Public.Name);
518  return Error::success();
519 }
520 
522  W.printNumber("SumName", ProcRef.SumName);
523  W.printNumber("SymOffset", ProcRef.SymOffset);
524  W.printNumber("Mod", ProcRef.Module);
525  W.printString("Name", ProcRef.Name);
526  return Error::success();
527 }
528 
531  if (ObjDelegate) {
532  ObjDelegate->printRelocatedField("CodeOffset", Label.getRelocationOffset(),
533  Label.CodeOffset, &LinkageName);
534  }
535  W.printHex("Segment", Label.Segment);
536  W.printHex("Flags", uint8_t(Label.Flags));
537  W.printFlags("Flags", uint8_t(Label.Flags), getProcSymFlagNames());
538  W.printString("DisplayName", Label.Name);
539  if (!LinkageName.empty())
540  W.printString("LinkageName", LinkageName);
541  return Error::success();
542 }
543 
545  printTypeIndex("Type", Local.Type);
546  W.printFlags("Flags", uint16_t(Local.Flags), getLocalFlagNames());
547  W.printString("VarName", Local.Name);
548  return Error::success();
549 }
550 
552  W.printHex("Signature", ObjName.Signature);
553  W.printString("ObjectName", ObjName.Name);
554  return Error::success();
555 }
556 
558  if (InFunctionScope)
559  return llvm::make_error<CodeViewError>(
560  "Visiting a ProcSym while inside function scope!");
561 
562  InFunctionScope = true;
563 
565  W.printHex("PtrParent", Proc.Parent);
566  W.printHex("PtrEnd", Proc.End);
567  W.printHex("PtrNext", Proc.Next);
568  W.printHex("CodeSize", Proc.CodeSize);
569  W.printHex("DbgStart", Proc.DbgStart);
570  W.printHex("DbgEnd", Proc.DbgEnd);
571  printTypeIndex("FunctionType", Proc.FunctionType);
572  if (ObjDelegate) {
573  ObjDelegate->printRelocatedField("CodeOffset", Proc.getRelocationOffset(),
574  Proc.CodeOffset, &LinkageName);
575  }
576  W.printHex("Segment", Proc.Segment);
577  W.printFlags("Flags", static_cast<uint8_t>(Proc.Flags),
579  W.printString("DisplayName", Proc.Name);
580  if (!LinkageName.empty())
581  W.printString("LinkageName", LinkageName);
582  return Error::success();
583 }
584 
586  ScopeEndSym &ScopeEnd) {
587  InFunctionScope = false;
588  return Error::success();
589 }
590 
592  ListScope S(W, CVR.kind() == S_CALLEES ? "Callees" : "Callers");
593  for (auto FuncID : Caller.Indices)
594  printTypeIndex("FuncID", FuncID);
595  return Error::success();
596 }
597 
599  RegRelativeSym &RegRel) {
600  W.printHex("Offset", RegRel.Offset);
601  printTypeIndex("Type", RegRel.Type);
602  W.printEnum("Register", uint16_t(RegRel.Register),
603  getRegisterNames(CompilationCPUType));
604  W.printString("VarName", RegRel.Name);
605  return Error::success();
606 }
607 
609  ThreadLocalDataSym &Data) {
611  if (ObjDelegate) {
612  ObjDelegate->printRelocatedField("DataOffset", Data.getRelocationOffset(),
613  Data.DataOffset, &LinkageName);
614  }
615  printTypeIndex("Type", Data.Type);
616  W.printString("DisplayName", Data.Name);
617  if (!LinkageName.empty())
618  W.printString("LinkageName", LinkageName);
619  return Error::success();
620 }
621 
623  printTypeIndex("Type", UDT.Type);
624  W.printString("UDTName", UDT.Name);
625  return Error::success();
626 }
627 
629  UsingNamespaceSym &UN) {
630  W.printString("Namespace", UN.Name);
631  return Error::success();
632 }
633 
635  AnnotationSym &Annot) {
636  W.printHex("Offset", Annot.CodeOffset);
637  W.printHex("Segment", Annot.Segment);
638 
639  ListScope S(W, "Strings");
640  for (StringRef Str : Annot.Strings)
641  W.printString(Str);
642 
643  return Error::success();
644 }
645 
646 Error CVSymbolDumperImpl::visitUnknownSymbol(CVSymbol &CVR) {
647  W.printNumber("Length", CVR.length());
648  return Error::success();
649 }
650 
653  SymbolDeserializer Deserializer(ObjDelegate.get(), Container);
654  CVSymbolDumperImpl Dumper(Types, ObjDelegate.get(), W, CompilationCPUType,
655  PrintRecordBytes);
656 
657  Pipeline.addCallbackToPipeline(Deserializer);
658  Pipeline.addCallbackToPipeline(Dumper);
659  CVSymbolVisitor Visitor(Pipeline);
660  auto Err = Visitor.visitSymbolRecord(Record);
661  CompilationCPUType = Dumper.getCompilationCPUType();
662  return Err;
663 }
664 
667  SymbolDeserializer Deserializer(ObjDelegate.get(), Container);
668  CVSymbolDumperImpl Dumper(Types, ObjDelegate.get(), W, CompilationCPUType,
669  PrintRecordBytes);
670 
671  Pipeline.addCallbackToPipeline(Deserializer);
672  Pipeline.addCallbackToPipeline(Dumper);
673  CVSymbolVisitor Visitor(Pipeline);
674  auto Err = Visitor.visitSymbolStream(Symbols);
675  CompilationCPUType = Dumper.getCompilationCPUType();
676  return Err;
677 }
llvm::codeview::RegisterSym
Definition: SymbolRecord.h:378
llvm::codeview::TrampolineSym::Size
uint16_t Size
Definition: SymbolRecord.h:97
llvm::logicalview::LVAttributeKind::Local
@ Local
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
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
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:96
llvm::codeview::HeapAllocationSiteSym::getRelocationOffset
uint32_t getRelocationOffset() const
Definition: SymbolRecord.h:830
llvm::codeview::DefRangeSym::Range
LocalVariableAddrRange Range
Definition: SymbolRecord.h:451
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
StringRef.h
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:629
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:266
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:329
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:25
llvm::ListScope
Definition: ScopedPrinter.h:828
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:1042
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:82
llvm::codeview::ScopeEndSym
Definition: SymbolRecord.h:139
SymbolVisitorCallbackPipeline.h
getSymbolKindName
static StringRef getSymbolKindName(SymbolKind Kind)
Definition: SymbolDumper.cpp:66
llvm::codeview::printTypeIndex
void printTypeIndex(ScopedPrinter &Printer, StringRef FieldName, TypeIndex TI, TypeCollection &Types)
Definition: TypeIndex.cpp:93
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
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:70
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
false
Definition: StackSlotColoring.cpp:141
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::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:651
llvm::codeview::Compile2Sym::getFlags
uint32_t getFlags() const
Definition: SymbolRecord.h:722
llvm::Value::Value
Value(Type *Ty, unsigned scid)
Definition: Value.cpp:52
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:42
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::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:1573
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:56
llvm::codeview::FrameCookieSym
Definition: SymbolRecord.h:843
llvm::codeview::FrameProcSym
Definition: SymbolRecord.h:768
llvm::DictScope
Definition: ScopedPrinter.h:809
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::logicalview::LVCompareKind::Types
@ Types
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::logicalview::LVAttributeKind::Range
@ Range
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
llvm::codeview::CVRecord
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
Definition: CVRecord.h:29
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::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:155
llvm::ScopedPrinter
Definition: ScopedPrinter.h:100
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:75
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:58
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:96
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:40