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 | 425b4dcc303ed3df780501f16f60a2d11c005a2c (patch) | |
tree | ef5b57c5c70d1d43922b8cc99309ca327fe3d2cb /llvm/lib | |
parent | c8d4065781b53d9a4b2a69cc306786b607f38c2e (diff) | |
download | bcm5719-llvm-425b4dcc303ed3df780501f16f60a2d11c005a2c.tar.gz bcm5719-llvm-425b4dcc303ed3df780501f16f60a2d11c005a2c.zip |
There is no need to add file as context for subroutine type. The subroutine type does not need any context.
llvm-svn: 138010
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DIBuilder.cpp b/llvm/lib/Analysis/DIBuilder.cpp index 55f6fcab56a..450412f421a 100644 --- a/llvm/lib/Analysis/DIBuilder.cpp +++ b/llvm/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), |