mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Add DIBuilder functions to build RAUWable DIVariables and DIFunctions.
Summary: These will be used to implement support for useful forward declarartions. Reviewers: echristo, dblaikie, aprantl Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5328 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -521,6 +521,15 @@ namespace llvm {
|
||||
DITypeRef Ty, bool isLocalToUnit, llvm::Value *Val,
|
||||
MDNode *Decl = nullptr);
|
||||
|
||||
/// createTempStaticVariableFwdDecl - Identical to createStaticVariable
|
||||
/// except that the resulting DbgNode is temporary and meant to be RAUWed.
|
||||
DIGlobalVariable
|
||||
createTempStaticVariableFwdDecl(DIDescriptor Context, StringRef Name,
|
||||
StringRef LinkageName, DIFile File,
|
||||
unsigned LineNo, DITypeRef Ty,
|
||||
bool isLocalToUnit, llvm::Value *Val,
|
||||
MDNode *Decl = nullptr);
|
||||
|
||||
|
||||
/// createLocalVariable - Create a new descriptor for the specified
|
||||
/// local variable.
|
||||
@@ -599,6 +608,21 @@ namespace llvm {
|
||||
MDNode *TParam = nullptr,
|
||||
MDNode *Decl = nullptr);
|
||||
|
||||
/// createTempFunctionFwdDecl - Identical to createFunction,
|
||||
/// except that the resulting DbgNode is meant to be RAUWed.
|
||||
DISubprogram createTempFunctionFwdDecl(DIDescriptor Scope, StringRef Name,
|
||||
StringRef LinkageName,
|
||||
DIFile File, unsigned LineNo,
|
||||
DICompositeType Ty, bool isLocalToUnit,
|
||||
bool isDefinition,
|
||||
unsigned ScopeLine,
|
||||
unsigned Flags = 0,
|
||||
bool isOptimized = false,
|
||||
Function *Fn = nullptr,
|
||||
MDNode *TParam = nullptr,
|
||||
MDNode *Decl = nullptr);
|
||||
|
||||
|
||||
/// FIXME: this is added for dragonegg. Once we update dragonegg
|
||||
/// to call resolve function, this will be removed.
|
||||
DISubprogram createFunction(DIScopeRef Scope, StringRef Name,
|
||||
@@ -731,7 +755,6 @@ namespace llvm {
|
||||
Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset,
|
||||
DIVariable VarInfo,
|
||||
Instruction *InsertBefore);
|
||||
|
||||
};
|
||||
} // end namespace llvm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user