aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/edit-swig-python-wrapper-file.py
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-11 17:48:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-11 17:48:06 +0000
commita82555c0f8569cfb9ef81ae6bc3ddc488437781e (patch)
treefa3252965542e29c68a6a8387e4cee3890d10879 /lldb/scripts/Python/edit-swig-python-wrapper-file.py
parent3fb543b06d2588012457e56f3b53a6e784927f56 (diff)
downloadllvm-a82555c0f8569cfb9ef81ae6bc3ddc488437781e.zip
llvm-a82555c0f8569cfb9ef81ae6bc3ddc488437781e.tar.gz
llvm-a82555c0f8569cfb9ef81ae6bc3ddc488437781e.tar.bz2
Change how globalopt handles aliases in llvm.used.
Instead of a custom implementation of replaceAllUsesWith, we just call replaceAllUsesWith and recreate llvm.used and llvm.compiler-used. This change is particularity interesting because it makes llvm see through what clang is doing with static used functions in extern "C" contexts. With this change, running clang -O2 in extern "C" { __attribute__((used)) static void foo() {} } produces @llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata" define internal void @foo() #0 { entry: ret void } llvm-svn: 183756
Diffstat (limited to 'lldb/scripts/Python/edit-swig-python-wrapper-file.py')
0 files changed, 0 insertions, 0 deletions