aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-20 19:39:15 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-20 19:39:15 +0000
commit6115ed0e4347f17504f72e4d37545b4230b2cb50 (patch)
tree55a264952ec55bc47cc79b2cd9a272b3713cf66e /lib/IR/DIBuilder.cpp
parenta625e820711644a3dae22cad53c95100e6e7d3f1 (diff)
downloadexternal_llvm-6115ed0e4347f17504f72e4d37545b4230b2cb50.zip
external_llvm-6115ed0e4347f17504f72e4d37545b4230b2cb50.tar.gz
external_llvm-6115ed0e4347f17504f72e4d37545b4230b2cb50.tar.bz2
Refactor file/directory path in namespace debug info to refer directly to the pair rather than the DIFile
(paired to a Clang test - excuse the buildbot skew/fallout) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r--lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp
index 05f6c32..4d31fd5 100644
--- a/lib/IR/DIBuilder.cpp
+++ b/lib/IR/DIBuilder.cpp
@@ -984,7 +984,7 @@ DINameSpace DIBuilder::createNameSpace(DIDescriptor Scope, StringRef Name,
DIFile File, unsigned LineNo) {
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_namespace),
- File,
+ File.getFileNode(),
getNonCompileUnitScope(Scope),
MDString::get(VMContext, Name),
ConstantInt::get(Type::getInt32Ty(VMContext), LineNo)