diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-21 23:08:34 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-21 23:08:34 +0000 |
commit | bb4e619cd9ff34708e3baaf0aac70275a917e0ba (patch) | |
tree | bf1713b36a98ba653cb278b4f41b53c2249cec8e /lib/IR/DIBuilder.cpp | |
parent | 8233050895f781befc1d4165435d0fff605b6b70 (diff) | |
download | external_llvm-bb4e619cd9ff34708e3baaf0aac70275a917e0ba.zip external_llvm-bb4e619cd9ff34708e3baaf0aac70275a917e0ba.tar.gz external_llvm-bb4e619cd9ff34708e3baaf0aac70275a917e0ba.tar.bz2 |
Refactor the filename/directory information in DISubprogram to refer directly to the pair rather than the DIFile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r-- | lib/IR/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 7b78b81..de01781 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -908,7 +908,7 @@ DISubprogram DIBuilder::createFunction(DIDescriptor Context, Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) }; Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_subprogram), - File, + File.getFileNode(), getNonCompileUnitScope(Context), MDString::get(VMContext, Name), MDString::get(VMContext, Name), @@ -955,7 +955,7 @@ DISubprogram DIBuilder::createMethod(DIDescriptor Context, Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) }; Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_subprogram), - F, + F.getFileNode(), getNonCompileUnitScope(Context), MDString::get(VMContext, Name), MDString::get(VMContext, Name), |