Skip to content
  • Daniel Dunbar's avatar
    Add simple interface for protecting runtime functions from name · 23fd462f
    Daniel Dunbar authored
    collisions.
     - Provide CodeGenModule::CreateRuntimeFunction which guarantees that
       the function it creates will have the provided name in the final
       module. This allows the runtime to have its functions protected
       from declarations of the same name in the source code.
    
     - One could argue that this is a reason to abuse the llvm::Module
       namespace for dealing with function redeclarations. However, that
       approach seems conceptually flawed to me. This one also happens to
       be somewhat more efficient.
    
    No functionality change.
    
    llvm-svn: 56899
    23fd462f
Loading