Skip to content
  • Rafael Espindola's avatar
    Make the llvm mangler depend only on DataLayout. · 58873566
    Rafael Espindola authored
    Before this patch any program that wanted to know the final symbol name of a
    GlobalValue had to link with Target.
    
    This patch implements a compromise solution where the mangler uses DataLayout.
    This way, any tool that already links with Target (llc, clang) gets the exact
    behavior as before and new IR files can be mangled without linking with Target.
    
    With this patch the mangler is constructed with just a DataLayout and DataLayout
    is extended to include the information the Mangler needs.
    
    llvm-svn: 198438
    58873566
Loading