commit | 84c73e9b8234287c4521e6d7e27c15e77843489e | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri Nov 06 17:58:12 2009 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri Nov 06 17:58:12 2009 +0000 |
tree | b1d049744293905389d9485b36cc83844deec266 | |
parent | 2928c83b010f7cfdb0f819199d806f6942a7d995 [diff] [blame] |
Do not bother to emit debug info for nameless global variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86259 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index b64dbf4..7c1cc35 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp
@@ -366,6 +366,9 @@ if (isNull()) return false; + if (!getDisplayName()) + return false; + if (getContext().isNull()) return false;