Skip to content

Instantly share code, notes, and snippets.

@dcci
Created April 9, 2016 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcci/c737c11cc58c0c13bffac3dab30c6002 to your computer and use it in GitHub Desktop.
Save dcci/c737c11cc58c0c13bffac3dab30c6002 to your computer and use it in GitHub Desktop.
DILocalVariable memory layout
*** Dumping AST Record Layout
0 | class llvm::DILocalVariable
0 | class llvm::DIVariable (base)
0 | class llvm::DINode (base)
0 | class llvm::MDNode (base)
0 | class llvm::Metadata (base)
0 | const unsigned char SubclassID
1:0-1 | unsigned int Storage
2 | unsigned short SubclassData16
4 | unsigned int SubclassData32
8 | unsigned int NumOperands
12 | unsigned int NumUnresolved
16 | class llvm::ContextAndReplaceableUses Context
16 | class llvm::PointerUnion<class llvm::LLVMContext *, class llvm::ReplaceableMetadataImpl *> Ptr
16 | class llvm::PointerIntPair<void *, 1, _Bool, class llvm::PointerUnionUIntTraits<class llvm::LLVMContext *, class llvm::ReplaceableMetadataImpl *>, struct llvm::PointerIntPairInfo<void *, 1, class llvm::PointerUnionUIntTraits<class llvm::LLVMContext *, class llvm::ReplaceableMetadataImpl *> > > Val
16 | intptr_t Value
24 | unsigned int Line
28 | unsigned int Arg
32 | unsigned int Flags
| [sizeof=40, dsize=36, align=8,
| nvsize=36, nvalign=8]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment