summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-extract/llvm-extract.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-29 00:27:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-29 00:27:55 +0000
commit9d30d0fc674d40005b38d73f210834ce11a56e66 (patch)
tree03be0d2804c8e85a899c2fac2bb4c7b0f9c023ff /llvm/tools/llvm-extract/llvm-extract.cpp
parente6c31579beecd89292810b77fdfc02f5d090f938 (diff)
downloadbcm5719-llvm-9d30d0fc674d40005b38d73f210834ce11a56e66.tar.gz
bcm5719-llvm-9d30d0fc674d40005b38d73f210834ce11a56e66.zip
llvm-extract was unable to handle aliases. It would leave a copy on the
output of both llvm-extract foo.ll -func=bar and llvm-extract foo.ll -func=bar -delete so the two new files could not be linked together anymore. With this change alias are handled almost like functions and global variables. Almost because with alias we cannot just clear the initializer/body, we have to create a new declaration and replace the alias with it. The net result is that now the output of the above commands can be linked even if foo.ll has aliases. llvm-svn: 166907
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud