mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Revert unintentional parts of previous check-in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -1126,17 +1126,14 @@ void DwarfDebug::endModule() { | |||||||
| } | } | ||||||
|  |  | ||||||
| /// findAbstractVariable - Find abstract variable, if any, associated with Var. | /// findAbstractVariable - Find abstract variable, if any, associated with Var. | ||||||
| DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &DV, | DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &Var, | ||||||
|                                               DebugLoc ScopeLoc) { |                                               DebugLoc ScopeLoc) { | ||||||
|   LLVMContext &Ctx = DV->getContext(); |  | ||||||
|  |  | ||||||
|   // More then one inlined variable corresponds to one abstract variable. |  | ||||||
|   DIVariable Var = cleanseInlinedVariable(DV, Ctx); |  | ||||||
|  |  | ||||||
|   DbgVariable *AbsDbgVariable = AbstractVariables.lookup(Var); |   DbgVariable *AbsDbgVariable = AbstractVariables.lookup(Var); | ||||||
|   if (AbsDbgVariable) |   if (AbsDbgVariable) | ||||||
|     return AbsDbgVariable; |     return AbsDbgVariable; | ||||||
|  |  | ||||||
|  |   LLVMContext &Ctx = Var->getContext(); | ||||||
|   LexicalScope *Scope = LScopes.findAbstractScope(ScopeLoc.getScope(Ctx)); |   LexicalScope *Scope = LScopes.findAbstractScope(ScopeLoc.getScope(Ctx)); | ||||||
|   if (!Scope) |   if (!Scope) | ||||||
|     return NULL; |     return NULL; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user