mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Define metadata interfaces for describing a static data member
of a class. Emit static data member declarations and definitions through correctly. Part of PR14471. Patch by Paul Robinson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -172,6 +172,19 @@ namespace llvm {
|
||||
uint64_t AlignInBits, uint64_t OffsetInBits,
|
||||
unsigned Flags, DIType Ty);
|
||||
|
||||
/// createStaticMemberType - Create debugging information entry for a
|
||||
/// C++ static data member.
|
||||
/// @param Scope Member scope.
|
||||
/// @param Name Member name.
|
||||
/// @param File File where this member is declared.
|
||||
/// @param LineNo Line number.
|
||||
/// @param Ty Type of the static member.
|
||||
/// @param Flags Flags to encode member attribute, e.g. private.
|
||||
/// @param Val Const initializer of the member.
|
||||
DIType createStaticMemberType(DIDescriptor Scope, StringRef Name,
|
||||
DIFile File, unsigned LineNo, DIType Ty,
|
||||
unsigned Flags, llvm::Value *Val);
|
||||
|
||||
/// createObjCIVar - Create debugging information entry for Objective-C
|
||||
/// instance variable.
|
||||
/// @param Name Member name.
|
||||
@ -402,10 +415,12 @@ namespace llvm {
|
||||
/// @param isLocalToUnit Boolean flag indicate whether this variable is
|
||||
/// externally visible or not.
|
||||
/// @param Val llvm::Value of the variable.
|
||||
/// @param Decl Reference to the corresponding declaration.
|
||||
DIGlobalVariable
|
||||
createStaticVariable(DIDescriptor Context, StringRef Name,
|
||||
StringRef LinkageName, DIFile File, unsigned LineNo,
|
||||
DIType Ty, bool isLocalToUnit, llvm::Value *Val);
|
||||
DIType Ty, bool isLocalToUnit, llvm::Value *Val,
|
||||
MDNode *Decl = NULL);
|
||||
|
||||
|
||||
/// createLocalVariable - Create a new descriptor for the specified
|
||||
|
Reference in New Issue
Block a user