mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Remove unnecessary uses of AliasedSymbol.
As pr19627 points out, every use of AliasedSymbol is likely a bug. The main use was to avoid the oddity of a variable showing up as undefined. That was fixed in r233995, which made these calls nops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -589,7 +589,7 @@ void ARMAsmBackend::processFixupValue(const MCAssembler &Asm,
 | 
			
		||||
      (unsigned)Fixup.getKind() != ARM::fixup_t2_adr_pcrel_12 &&
 | 
			
		||||
      (unsigned)Fixup.getKind() != ARM::fixup_arm_thumb_cp) {
 | 
			
		||||
    if (A) {
 | 
			
		||||
      const MCSymbol &Sym = A->getSymbol().AliasedSymbol();
 | 
			
		||||
      const MCSymbol &Sym = A->getSymbol();
 | 
			
		||||
      if (Asm.isThumbFunc(&Sym))
 | 
			
		||||
        Value |= 1;
 | 
			
		||||
    }
 | 
			
		||||
@@ -598,7 +598,7 @@ void ARMAsmBackend::processFixupValue(const MCAssembler &Asm,
 | 
			
		||||
  // the basic blocks of the same function.  Thus, we would like to resolve
 | 
			
		||||
  // the offset when the destination has the same MCFragment.
 | 
			
		||||
  if (A && (unsigned)Fixup.getKind() == ARM::fixup_arm_thumb_bl) {
 | 
			
		||||
    const MCSymbol &Sym = A->getSymbol().AliasedSymbol();
 | 
			
		||||
    const MCSymbol &Sym = A->getSymbol();
 | 
			
		||||
    const MCSymbolData &SymData = Asm.getSymbolData(Sym);
 | 
			
		||||
    IsResolved = (SymData.getFragment() == DF);
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user