mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
DIBuilder: Change private helper function to static, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4462c144e6
commit
d7e69b2a86
@ -75,13 +75,6 @@ namespace llvm {
|
|||||||
/// Each subprogram's preserved local variables.
|
/// Each subprogram's preserved local variables.
|
||||||
DenseMap<MDNode *, std::vector<TrackingVH<MDNode>>> PreservedVariables;
|
DenseMap<MDNode *, std::vector<TrackingVH<MDNode>>> PreservedVariables;
|
||||||
|
|
||||||
// Private use for multiple types of template parameters.
|
|
||||||
DITemplateValueParameter
|
|
||||||
createTemplateValueParameter(unsigned Tag, DIDescriptor Scope,
|
|
||||||
StringRef Name, DIType Ty, Value *Val,
|
|
||||||
MDNode *File = nullptr, unsigned LineNo = 0,
|
|
||||||
unsigned ColumnNo = 0);
|
|
||||||
|
|
||||||
DIBuilder(const DIBuilder &) LLVM_DELETED_FUNCTION;
|
DIBuilder(const DIBuilder &) LLVM_DELETED_FUNCTION;
|
||||||
void operator=(const DIBuilder &) LLVM_DELETED_FUNCTION;
|
void operator=(const DIBuilder &) LLVM_DELETED_FUNCTION;
|
||||||
|
|
||||||
|
@ -476,12 +476,9 @@ DIBuilder::createTemplateTypeParameter(DIDescriptor Context, StringRef Name,
|
|||||||
return DITemplateTypeParameter(MDNode::get(VMContext, Elts));
|
return DITemplateTypeParameter(MDNode::get(VMContext, Elts));
|
||||||
}
|
}
|
||||||
|
|
||||||
DITemplateValueParameter
|
static DITemplateValueParameter createTemplateValueParameterHelper(
|
||||||
DIBuilder::createTemplateValueParameter(unsigned Tag, DIDescriptor Context,
|
LLVMContext &VMContext, unsigned Tag, DIDescriptor Context, StringRef Name,
|
||||||
StringRef Name, DIType Ty,
|
DIType Ty, Value *Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) {
|
||||||
Value *Val, MDNode *File,
|
|
||||||
unsigned LineNo,
|
|
||||||
unsigned ColumnNo) {
|
|
||||||
Value *Elts[] = {
|
Value *Elts[] = {
|
||||||
HeaderBuilder::get(Tag).concat(Name).concat(LineNo).concat(ColumnNo).get(
|
HeaderBuilder::get(Tag).concat(Name).concat(LineNo).concat(ColumnNo).get(
|
||||||
VMContext),
|
VMContext),
|
||||||
@ -495,9 +492,9 @@ DIBuilder::createTemplateValueParameter(DIDescriptor Context, StringRef Name,
|
|||||||
DIType Ty, Value *Val,
|
DIType Ty, Value *Val,
|
||||||
MDNode *File, unsigned LineNo,
|
MDNode *File, unsigned LineNo,
|
||||||
unsigned ColumnNo) {
|
unsigned ColumnNo) {
|
||||||
return createTemplateValueParameter(dwarf::DW_TAG_template_value_parameter,
|
return createTemplateValueParameterHelper(
|
||||||
Context, Name, Ty, Val, File, LineNo,
|
VMContext, dwarf::DW_TAG_template_value_parameter, Context, Name, Ty, Val,
|
||||||
ColumnNo);
|
File, LineNo, ColumnNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
DITemplateValueParameter
|
DITemplateValueParameter
|
||||||
@ -505,8 +502,8 @@ DIBuilder::createTemplateTemplateParameter(DIDescriptor Context, StringRef Name,
|
|||||||
DIType Ty, StringRef Val,
|
DIType Ty, StringRef Val,
|
||||||
MDNode *File, unsigned LineNo,
|
MDNode *File, unsigned LineNo,
|
||||||
unsigned ColumnNo) {
|
unsigned ColumnNo) {
|
||||||
return createTemplateValueParameter(
|
return createTemplateValueParameterHelper(
|
||||||
dwarf::DW_TAG_GNU_template_template_param, Context, Name, Ty,
|
VMContext, dwarf::DW_TAG_GNU_template_template_param, Context, Name, Ty,
|
||||||
MDString::get(VMContext, Val), File, LineNo, ColumnNo);
|
MDString::get(VMContext, Val), File, LineNo, ColumnNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -515,9 +512,9 @@ DIBuilder::createTemplateParameterPack(DIDescriptor Context, StringRef Name,
|
|||||||
DIType Ty, DIArray Val,
|
DIType Ty, DIArray Val,
|
||||||
MDNode *File, unsigned LineNo,
|
MDNode *File, unsigned LineNo,
|
||||||
unsigned ColumnNo) {
|
unsigned ColumnNo) {
|
||||||
return createTemplateValueParameter(dwarf::DW_TAG_GNU_template_parameter_pack,
|
return createTemplateValueParameterHelper(
|
||||||
Context, Name, Ty, Val, File, LineNo,
|
VMContext, dwarf::DW_TAG_GNU_template_parameter_pack, Context, Name, Ty,
|
||||||
ColumnNo);
|
Val, File, LineNo, ColumnNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
DICompositeType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
DICompositeType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user