Skip to content
  • Daniel Dunbar's avatar
    Replace large swaths of copy-n-paste code with obvious helper function... · eb8c83b4
    Daniel Dunbar authored
     - Which was already present in the module!
    
     - I skipped this xform for Alpha, since it runs an extra pass during assembly
       emission, but not when emitting assembly via the DumpAsm flag.
    
     - No functionality change.
    
    --
    ddunbar@giles:llvm$ svn diff | grep '^- ' | sort | uniq -c
      18 -      PM.add(AsmPrinterCtor(ferrs(), *this, true));
      18 -    assert(AsmPrinterCtor && "AsmPrinter was not linked in");
      18 -    if (AsmPrinterCtor)
      18 -  if (DumpAsm) {
      18 -  }
    ddunbar@giles:llvm$ svn diff | grep '^+ ' | sort | uniq -c
      18 +    addAssemblyEmitter(PM, OptLevel, true, ferrs());
      18 +  if (DumpAsm)
    --
    
    llvm-svn: 75782
    eb8c83b4
Loading