diff options
author | Eric Christopher <echristo@gmail.com> | 2013-08-08 07:40:31 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-08-08 07:40:31 +0000 |
commit | afdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9 (patch) | |
tree | 485215edcc569b280d42155b44e053e5bae5c6de /lib/CodeGen | |
parent | 01d22aaa78b831ad4837f928e0554be7e65addaa (diff) | |
download | external_llvm-afdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9.zip external_llvm-afdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9.tar.gz external_llvm-afdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9.tar.bz2 |
Change variable name and reflow formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 2980b64..0c9bc23 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1131,18 +1131,18 @@ CompileUnit::getOrCreateTemplateTypeParameterDIE(DITemplateTypeParameter TP) { /// getOrCreateTemplateValueParameterDIE - Find existing DIE or create new DIE /// for the given DITemplateValueParameter. DIE * -CompileUnit::getOrCreateTemplateValueParameterDIE(DITemplateValueParameter TPV){ - DIE *ParamDIE = getDIE(TPV); +CompileUnit::getOrCreateTemplateValueParameterDIE(DITemplateValueParameter VP) { + DIE *ParamDIE = getDIE(VP); if (ParamDIE) return ParamDIE; - ParamDIE = new DIE(TPV.getTag()); - addType(ParamDIE, TPV.getType()); - if (!TPV.getName().empty()) - addString(ParamDIE, dwarf::DW_AT_name, TPV.getName()); - if (Value *Val = TPV.getValue()) { + ParamDIE = new DIE(VP.getTag()); + addType(ParamDIE, VP.getType()); + if (!VP.getName().empty()) + addString(ParamDIE, dwarf::DW_AT_name, VP.getName()); + if (Value *Val = VP.getValue()) { if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) - addConstantValue(ParamDIE, CI, TPV.getType().isUnsignedDIType()); + addConstantValue(ParamDIE, CI, VP.getType().isUnsignedDIType()); else if (GlobalValue *GV = dyn_cast<GlobalValue>(Val)) { // For declaration non-type template parameters (such as global values and // functions) @@ -1152,11 +1152,11 @@ CompileUnit::getOrCreateTemplateValueParameterDIE(DITemplateValueParameter TPV){ // parameter, rather than a pointer to it. addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_stack_value); addBlock(ParamDIE, dwarf::DW_AT_location, 0, Block); - } else if (TPV.getTag() == dwarf::DW_TAG_GNU_template_template_param) { + } else if (VP.getTag() == dwarf::DW_TAG_GNU_template_template_param) { assert(isa<MDString>(Val)); addString(ParamDIE, dwarf::DW_AT_GNU_template_name, cast<MDString>(Val)->getString()); - } else if (TPV.getTag() == dwarf::DW_TAG_GNU_template_parameter_pack) { + } else if (VP.getTag() == dwarf::DW_TAG_GNU_template_parameter_pack) { assert(isa<MDNode>(Val)); DIArray A(cast<MDNode>(Val)); addTemplateParams(*ParamDIE, A); |