summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-01 00:49:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-01 00:49:24 +0000
commit23fd462f48ace997471c31f39a7f9c8decc18026 (patch)
tree256c69d7e65b169e507a3f66f49042bca021f16a /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent1df16dff64fc22bbfabaffc8ab8e5f8bc20225cd (diff)
downloadbcm5719-llvm-23fd462f48ace997471c31f39a7f9c8decc18026.tar.gz
bcm5719-llvm-23fd462f48ace997471c31f39a7f9c8decc18026.zip
Add simple interface for protecting runtime functions from name
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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud