summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/non_fragile_feature.m
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-08-31 16:14:59 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-08-31 16:14:59 +0000
commitd18e668fbcf40951c19a908f91b74cd41ea9f21c (patch)
treed6fa21e407120c03885c652290bfca34b2674c8e /clang/test/Preprocessor/non_fragile_feature.m
parent487d57602076cdb6d64a0e7931a5c01008adb7cb (diff)
downloadbcm5719-llvm-d18e668fbcf40951c19a908f91b74cd41ea9f21c.tar.gz
bcm5719-llvm-d18e668fbcf40951c19a908f91b74cd41ea9f21c.zip
Free the constants that have no uses in ~LLVMContext.
This fixes leaks from LLVMContext in multithreaded apps. Since constants are only deleted if they have no uses, it is safe to not delete a Module on shutdown, as many single-threaded tools do. Multithreaded apps should however delete the Module before destroying the Context to ensure that there are no leaks (assuming they use a different context for each thread). llvm-svn: 80590
Diffstat (limited to 'clang/test/Preprocessor/non_fragile_feature.m')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud