diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-17 20:36:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-17 20:36:20 +0000 |
commit | 4c77dfa20c6cf96ef571a4ab5ff253e9b79a86c2 (patch) | |
tree | aad3c23a998cdc81fd4973d2cc24ae2f134fdca2 /lib/Analysis | |
parent | 29626642271ae810dd526de8afa151484452abe0 (diff) | |
download | external_llvm-4c77dfa20c6cf96ef571a4ab5ff253e9b79a86c2.zip external_llvm-4c77dfa20c6cf96ef571a4ab5ff253e9b79a86c2.tar.gz external_llvm-4c77dfa20c6cf96ef571a4ab5ff253e9b79a86c2.tar.bz2 |
Oops. find all llvm.dbg.global_variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 527dae2..fb80b83 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -942,7 +942,7 @@ void DebugInfoFinder::processModule(Module &M) { GVI != GVE; ++GVI) { GlobalVariable *GV = GVI; if (!GV->hasName() || !GV->isConstant() - || strcmp(GV->getName().data(), "llvm.dbg.global_variable") + || strncmp(GV->getName().data(), "llvm.dbg.global_variable", 24) || !GV->hasInitializer()) continue; DIGlobalVariable DIG(GV); |