summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-12-03 18:28:12 +0000
committerAlexey Samsonov <samsonov@google.com>2012-12-03 18:28:12 +0000
commit9c1b9f60ad21b36a172bba5235d56ccd2e97437a (patch)
tree5e3d7f4fdbcb3e43c7d51827e66d7d1d85d88d83 /clang/lib/CodeGen/CodeGenModule.cpp
parentf79351157959adde9a65d99075590a9db613a77b (diff)
downloadbcm5719-llvm-9c1b9f60ad21b36a172bba5235d56ccd2e97437a.tar.gz
bcm5719-llvm-9c1b9f60ad21b36a172bba5235d56ccd2e97437a.zip
Fix PR14474: don't emit debug info for interface types in -gline-tables-only mode.
llvm-svn: 169138
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 17972e29b65..deeda43adf1 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2691,9 +2691,9 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
ObjCRuntime->GenerateClass(OMD);
// Emit global variable debug information.
if (CGDebugInfo *DI = getModuleDebugInfo())
- DI->getOrCreateInterfaceType(getContext().getObjCInterfaceType(OMD->getClassInterface()),
- OMD->getLocation());
-
+ if (getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo)
+ DI->getOrCreateInterfaceType(getContext().getObjCInterfaceType(
+ OMD->getClassInterface()), OMD->getLocation());
break;
}
case Decl::ObjCMethod: {
OpenPOWER on IntegriCloud