Skip to content
  • Rafael Espindola's avatar
    36b718fc
    Avoid a Symbol -> Name -> Symbol conversion. · 36b718fc
    Rafael Espindola authored
    Before this we were producing a TargetExternalSymbol from a MCSymbol.
    That meant extracting the symbol name and fetching the symbol again
    down the pipeline.
    
    This patch adds a DAG.getMCSymbol that lets the MCSymbol pass unchanged on the
    DAG.
    
    Doing so removes the need for MO_NOPREFIX and fixes the root cause of pr23900,
    allowing r240130 to be committed again.
    
    llvm-svn: 240300
    36b718fc
    Avoid a Symbol -> Name -> Symbol conversion.
    Rafael Espindola authored
    Before this we were producing a TargetExternalSymbol from a MCSymbol.
    That meant extracting the symbol name and fetching the symbol again
    down the pipeline.
    
    This patch adds a DAG.getMCSymbol that lets the MCSymbol pass unchanged on the
    DAG.
    
    Doing so removes the need for MO_NOPREFIX and fixes the root cause of pr23900,
    allowing r240130 to be committed again.
    
    llvm-svn: 240300
Loading