summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-10-04 23:23:04 +0000
committerAdrian Prantl <aprantl@apple.com>2015-10-04 23:23:04 +0000
commitf0cd677b171780208d360ca84770c6d3a2f199ea (patch)
tree209cf88324f61e3e264ce3c836cfff17ec018da7 /clang/lib/CodeGen/CGDebugInfo.cpp
parent75fada02114bb279b81cfee13c4775dbfb58d469 (diff)
downloadbcm5719-llvm-f0cd677b171780208d360ca84770c6d3a2f199ea.tar.gz
bcm5719-llvm-f0cd677b171780208d360ca84770c6d3a2f199ea.zip
Module Debugging: Emit (ObjC) function declarations in the module scope
when building a module. llvm-svn: 249282
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 4a5c16e2197..792b1b09a0f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -2731,7 +2731,7 @@ void CGDebugInfo::EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
unsigned Flags = 0;
llvm::DIFile *Unit = getOrCreateFile(Loc);
- llvm::DIScope *FDContext = Unit;
+ llvm::DIScope *FDContext = getDeclContextDescriptor(D);
llvm::DINodeArray TParamsArray;
if (isa<FunctionDecl>(D)) {
// If there is a DISubprogram for this function available then use it.
OpenPOWER on IntegriCloud