summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-20 06:27:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-20 06:27:06 +0000
commit4f278f9b800f5fb38ccc6cb3c32c5cd55edf794d (patch)
tree6ac48ada108741461cfbb574c1c44f3e58352d55 /llvm/lib/IR
parente703f2dc30720cc298e2583cabc99815fe9297f3 (diff)
downloadbcm5719-llvm-4f278f9b800f5fb38ccc6cb3c32c5cd55edf794d.tar.gz
bcm5719-llvm-4f278f9b800f5fb38ccc6cb3c32c5cd55edf794d.zip
Reorder the DIFile parameter in DINameSpace
Moving the DIFile parameter to immediately proceed the tag so that it will be a common prefix with other DIScopes (once the DIFile is replaced with the raw file/directory pair). llvm-svn: 177492
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index f435bba0da6..48238e940f4 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -975,9 +975,9 @@ DINameSpace DIBuilder::createNameSpace(DIDescriptor Scope, StringRef Name,
DIFile File, unsigned LineNo) {
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_namespace),
+ File,
getNonCompileUnitScope(Scope),
MDString::get(VMContext, Name),
- File,
ConstantInt::get(Type::getInt32Ty(VMContext), LineNo)
};
DINameSpace R(MDNode::get(VMContext, Elts));
OpenPOWER on IntegriCloud