Fixed IRForTarget to not recognize $__lldb variables

as persistent variables.  These are special markers
used by LLDB.

llvm-svn: 117078
This commit is contained in:
Sean Callanan 2010-10-21 22:41:32 +00:00
parent 28418de7ee
commit 6608f07a79
1 changed files with 2 additions and 1 deletions

View File

@ -494,7 +494,8 @@ IRForTarget::rewritePersistentAllocs(llvm::Module &M,
Instruction &inst = *ii; Instruction &inst = *ii;
if (AllocaInst *alloc = dyn_cast<AllocaInst>(&inst)) if (AllocaInst *alloc = dyn_cast<AllocaInst>(&inst))
if (alloc->getName().startswith("$")) if (alloc->getName().startswith("$") &&
!alloc->getName().startswith("$__lldb"))
pvar_allocs.push_back(alloc); pvar_allocs.push_back(alloc);
} }