diff options
author | Devang Patel <dpatel@apple.com> | 2011-08-18 23:50:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-08-18 23:50:57 +0000 |
commit | 2bd6269417960e00962cb7d8ff92e36b183a4910 (patch) | |
tree | e6d864b6f45c2eadc677d38f2b6a5449d49fac3c /lib/Analysis/DIBuilder.cpp | |
parent | f1f6de1c9b658c78baa36c1af7a94c1deba91851 (diff) |
There is no need to add file as context for subroutine type. The subroutine type does not need any context.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DIBuilder.cpp')
-rw-r--r-- | lib/Analysis/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DIBuilder.cpp b/lib/Analysis/DIBuilder.cpp index 55f6fcab56..450412f421 100644 --- a/lib/Analysis/DIBuilder.cpp +++ b/lib/Analysis/DIBuilder.cpp @@ -434,9 +434,9 @@ DIType DIBuilder::createSubroutineType(DIFile File, DIArray ParameterTypes) { // TAG_subroutine_type is encoded in DICompositeType format. Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_subroutine_type), - getNonCompileUnitScope(File), + llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), MDString::get(VMContext, ""), - File, + llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), ConstantInt::get(Type::getInt32Ty(VMContext), 0), ConstantInt::get(Type::getInt64Ty(VMContext), 0), ConstantInt::get(Type::getInt64Ty(VMContext), 0), |